diff options
| author | liyingjun <yingjun.li@kylin-cloud.com> | 2017-05-16 17:21:58 +0800 |
|---|---|---|
| committer | liyingjun <yingjun.li@kylin-cloud.com> | 2017-05-19 10:46:12 +0800 |
| commit | 479d567177023cdc243cfa14134f152bfefbd52e (patch) | |
| tree | cbddbf8a9a38f5dae57581cf2a6155d7fca38c94 /tools | |
| parent | b595f236d089497505ed32cb9356a66f6ae8dd92 (diff) | |
| download | kolla-ansible-479d567177023cdc243cfa14134f152bfefbd52e.tar.gz kolla-ansible-479d567177023cdc243cfa14134f152bfefbd52e.zip | |
Removing ovs bridge before destroying container
Change-Id: I0fac4cef9e961b1d64f269bfc27804e77f4ea842
Closes-bug: #1689422
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/cleanup-containers | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers index a6fee80ea..62aa34af7 100755 --- a/tools/cleanup-containers +++ b/tools/cleanup-containers @@ -26,6 +26,7 @@ echo "Removing ovs bridge..." (docker exec -u root neutron_openvswitch_agent neutron-ovs-cleanup \ --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini \ --ovs_all_ports) > /dev/null +(docker exec -it openvswitch_vswitchd bash -c 'for br in `ovs-vsctl list-br`;do ovs-vsctl --if-exists del-br $br;done') > /dev/null fi echo "Stopping containers..." |
