From 40aae6adbfce1bd896d5f7b0e281e798b56d1ca8 Mon Sep 17 00:00:00 2001 From: Hirofumi Ichihara Date: Wed, 8 Feb 2017 00:08:53 +0900 Subject: [PATCH] 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 --- lib/neutron_plugins/linuxbridge_agent | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 lib/neutron_plugins/linuxbridge_agent diff --git a/lib/neutron_plugins/linuxbridge_agent b/lib/neutron_plugins/linuxbridge_agent old mode 100644 new mode 100755 index 0c8ccb8718..5885616951 --- a/lib/neutron_plugins/linuxbridge_agent +++ b/lib/neutron_plugins/linuxbridge_agent @@ -8,6 +8,7 @@ _XTRACE_NEUTRON_LB=$(set +o | grep xtrace) set +o xtrace function neutron_lb_cleanup { + sudo ip link set $PUBLIC_BRIDGE down sudo brctl delbr $PUBLIC_BRIDGE if [[ "$Q_ML2_TENANT_NETWORK_TYPE" = "vxlan" ]]; then