Browse code

Down PUBLIC_BRIDGE before trying to delete it

When cleanup devstack with linuxbridge, PUBLIC_BRIDGE should be
DOWN before trying to delete it.

Change-Id: I2d205cbe4d92a03ee5c376a23282d9880dd9a1df
Closes-Bug: #1662543

Hirofumi Ichihara authored on 2017/02/08 00:08:53
Showing 1 changed files
1 1
old mode 100644
2 2
new mode 100755
... ...
@@ -8,6 +8,7 @@ _XTRACE_NEUTRON_LB=$(set +o | grep xtrace)
8 8
 set +o xtrace
9 9
 
10 10
 function neutron_lb_cleanup {
11
+    sudo ip link set $PUBLIC_BRIDGE down
11 12
     sudo brctl delbr $PUBLIC_BRIDGE
12 13
 
13 14
     if [[ "$Q_ML2_TENANT_NETWORK_TYPE" = "vxlan" ]]; then