Replace ifconfig with ip

ifconfig (net-tools) is going to be deprecated,
replaced ifconfig calls with ip link

Change-Id: I2d2192c0d0ec7b240d719b62d0f1b0402265fadc
This commit is contained in:
vsaienko 2016-02-09 13:24:54 +02:00
parent c9f96d6d79
commit a0287720c9
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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}