diff options
| author | Steven Dake <stdake@cisco.com> | 2015-05-28 08:30:06 -0700 |
|---|---|---|
| committer | Steven Dake <stdake@cisco.com> | 2015-05-28 08:35:41 -0700 |
| commit | 59a2cd4089126d791244474f96fb2d395e1eb5ee (patch) | |
| tree | e9451c12341ae5c8debf6114a7a8063e0fd61e51 /tools | |
| parent | 07b6000fe9f68c46fe61fdca9cc86f61c8f3c293 (diff) | |
| download | kolla-59a2cd4089126d791244474f96fb2d395e1eb5ee.tar.gz kolla-59a2cd4089126d791244474f96fb2d395e1eb5ee.zip | |
Make clenaup-containers bashate compliant
Change-Id: I5469e6e60b9e20ee98c9149697f663e94e58077d
Partially-Implements: blueprint bashate-gate
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/cleanup-containers | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers index 57c663c9c..8e6c7ff31 100755 --- a/tools/cleanup-containers +++ b/tools/cleanup-containers @@ -12,28 +12,28 @@ cd "$(dirname "$REAL_PATH")/.." # Remove docker containers docker ps -a -q | while read -r line ; do - echo "Removing docker containers" - docker rm -f $line + echo "Removing docker containers" + docker rm -f $line done # Spawning the neutron-agents container leaves artifacts on the host. # This script removes these artifacts. ip netns list | while read -r line ; do - echo "Removing network namespaces on the host" - ip netns delete $line + echo "Removing network namespaces on the host" + ip netns delete $line done ifconfig | grep tap | awk '{print $1;}'| cut -f1 -d':' | while read -r line ; do - echo "Removing tap interfaces on the host" - ip link delete $line type veth + echo "Removing tap interfaces on the host" + ip link delete $line type veth done ifconfig | grep brq | awk '{print $1;}'| cut -f1 -d':' | while read -r line ; do - echo "Removing linux bridges on the host" - ip link delete $line type bridge + echo "Removing linux bridges on the host" + ip link delete $line type bridge done ifconfig | grep vxlan | awk '{print $1;}'| cut -f1 -d':' | while read -r line ; do - echo "Removing vxlan interfaces on the host" - ip link delete $line type vxlan + echo "Removing vxlan interfaces on the host" + ip link delete $line type vxlan done |
