Merge "Update network command destroy_network.sh"

This commit is contained in:
Zuul 2018-12-21 01:09:10 +00:00 committed by Gerrit Code Review
commit ee8ca047f8
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ EXTERNAL_IP=${EXTERNAL_IP:-10.10.10.1/24}
for i in {1..4}; do
BRIDGE_INTERFACE_NAME=${BRIDGE_INTERFACE}$i
if [ -d "/sys/class/net/${BRIDGE_INTERFACE_NAME}" ]; then
sudo ifconfig ${BRIDGE_INTERFACE_NAME} down
sudo brctl delbr ${BRIDGE_INTERFACE_NAME}
sudo ip link set dev ${BRIDGE_INTERFACE_NAME} down
sudo ip link delete dev ${BRIDGE_INTERFACE_NAME}
fi
done