Remove usage of deprecated ifconfig, bridge-utils
[icn.git] / deploy / metal3-vm / 05_host_cleanup.sh
index c8edd48..9ad8088 100755 (executable)
@@ -48,12 +48,12 @@ ANSIBLE_FORCE_COLOR=true ansible-playbook \
 sudo rm -rf /etc/NetworkManager/conf.d/dnsmasq.conf
 # There was a bug in this file, it may need to be recreated.
 if [ "$MANAGE_PRO_BRIDGE" == "y" ]; then
-    sudo ifdown provisioning || true
+    sudo ip link set dev provisioning down || true
     sudo rm -f /etc/sysconfig/network-scripts/ifcfg-provisioning || true
 fi
 # Leaving this around causes issues when the host is rebooted
 if [ "$MANAGE_BR_BRIDGE" == "y" ]; then
-    sudo ifdown baremetal || true
+    sudo ip link set dev baremetal down || true
     sudo rm -f /etc/sysconfig/network-scripts/ifcfg-baremetal || true
 fi