diff --git a/devstack/tools/ironic/scripts/cleanup-node.sh b/devstack/tools/ironic/scripts/cleanup-node.sh index 2d9e73e414..e10c04bbc6 100755 --- a/devstack/tools/ironic/scripts/cleanup-node.sh +++ b/devstack/tools/ironic/scripts/cleanup-node.sh @@ -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