Merge "devstack 'cleanup-node' script should delete OVS bridges"

This commit is contained in:
Jenkins 2016-02-02 18:07:00 +00:00 committed by Gerrit Code Review
commit 6b2a1c46e5
1 changed files with 5 additions and 0 deletions

View File

@ -23,3 +23,8 @@ if virsh pool-list | grep -q $LIBVIRT_STORAGE_POOL ; then
virsh vol-list $LIBVIRT_STORAGE_POOL | grep -q $VOL_NAME &&
virsh vol-delete $VOL_NAME --pool $LIBVIRT_STORAGE_POOL
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 brctl delbr br-$NAME || true