From 5c61043875765ab2fc9abc3183cf659e4d7c8b7f Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Thu, 28 Mar 2024 15:55:57 +0100 Subject: [PATCH] document connection removal --- admin-guide/configuration/networking.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/admin-guide/configuration/networking.md b/admin-guide/configuration/networking.md index b5ce11e8..c3ba3f4b 100644 --- a/admin-guide/configuration/networking.md +++ b/admin-guide/configuration/networking.md @@ -133,6 +133,26 @@ networking::connection::management_network: All routing options can be found in the Red Hat NetworkManager documentation ([RHEL8](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/configuring-static-routes_configuring-and-managing-networking#how-to-use-the-nmcli-command-to-configure-a-static-route_configuring-static-routes), [RHEL9](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_networking/configuring-static-routes_configuring-and-managing-networking#how-to-use-the-nmcli-command-to-configure-a-static-route_configuring-static-routes)). +### Removing a Connection + +A connection does **not get removed** when its configuration has been removed in Hiera and was applied on the node. + +To remove it you may do it manually or reboot. + +Manual removal is done with `nmcli connection down $ID/$CONNECTION_NAME`: +``` +[root@lx-test-dmz-01 ~]# nmcli connection +NAME UUID TYPE DEVICE +dmz_network f77611ac-b6e2-5a08-841e-8a1023eefaed ethernet ens33 +ens35 f3ba4a81-8c9b-4aec-88ee-ddffd32f67fa ethernet ens35 +[root@lx-test-dmz-01 ~]# nmcli connection down f3ba4a81-8c9b-4aec-88ee-ddffd32f67fa +Connection 'ens35' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/2) +[root@lmu-user-dmz-01 ~]# nmcli connection +NAME UUID TYPE DEVICE +dmz_network f77611ac-b6e2-5a08-841e-8a1023eefaed ethernet ens33 +[root@lx-test-dmz-01 ~]# +``` + ### DNS Override The internal nameservers are configured according to the network zone by Puppet.