From a0287720c9b4e395fb056bf8e3f94ed3ecd489d9 Mon Sep 17 00:00:00 2001 From: vsaienko Date: Tue, 9 Feb 2016 13:24:54 +0200 Subject: [PATCH] Replace ifconfig with ip ifconfig (net-tools) is going to be deprecated, replaced ifconfig calls with ip link Change-Id: I2d2192c0d0ec7b240d719b62d0f1b0402265fadc --- devstack/tools/ironic/scripts/cleanup-node.sh | 2 +- devstack/tools/ironic/scripts/setup-network.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devstack/tools/ironic/scripts/cleanup-node.sh b/devstack/tools/ironic/scripts/cleanup-node.sh index e10c04bbc6..20579ebc02 100755 --- a/devstack/tools/ironic/scripts/cleanup-node.sh +++ b/devstack/tools/ironic/scripts/cleanup-node.sh @@ -26,5 +26,5 @@ fi sudo brctl delif br-$NAME ovs-$NAME || true sudo ovs-vsctl del-port $NETWORK_BRIDGE ovs-$NAME || true -sudo ifconfig br-$NAME down || true +sudo ip link set dev br-$NAME down || true sudo brctl delbr br-$NAME || true diff --git a/devstack/tools/ironic/scripts/setup-network.sh b/devstack/tools/ironic/scripts/setup-network.sh index 68cfd2b659..8ed3f321d8 100755 --- a/devstack/tools/ironic/scripts/setup-network.sh +++ b/devstack/tools/ironic/scripts/setup-network.sh @@ -18,7 +18,7 @@ export VIRSH_DEFAULT_CONNECT_URI="$LIBVIRT_CONNECT_URI" # Only add bridge if missing. Bring it UP. (sudo ovs-vsctl list-br | grep ${BRIDGE_NAME}$) || sudo ovs-vsctl add-br ${BRIDGE_NAME} -sudo ifconfig ${BRIDGE_NAME} up +sudo ip link set dev ${BRIDGE_NAME} up # Remove bridge before replacing it. (virsh net-list | grep "${BRIDGE_NAME} ") && virsh net-destroy ${BRIDGE_NAME}