Make clenaup-containers bashate compliant
Change-Id: I5469e6e60b9e20ee98c9149697f663e94e58077d Partially-Implements: blueprint bashate-gate
This commit is contained in:
parent
07b6000fe9
commit
59a2cd4089
@ -12,28 +12,28 @@ cd "$(dirname "$REAL_PATH")/.."
|
|||||||
|
|
||||||
# Remove docker containers
|
# Remove docker containers
|
||||||
docker ps -a -q | while read -r line ; do
|
docker ps -a -q | while read -r line ; do
|
||||||
echo "Removing docker containers"
|
echo "Removing docker containers"
|
||||||
docker rm -f $line
|
docker rm -f $line
|
||||||
done
|
done
|
||||||
|
|
||||||
# Spawning the neutron-agents container leaves artifacts on the host.
|
# Spawning the neutron-agents container leaves artifacts on the host.
|
||||||
# This script removes these artifacts.
|
# This script removes these artifacts.
|
||||||
ip netns list | while read -r line ; do
|
ip netns list | while read -r line ; do
|
||||||
echo "Removing network namespaces on the host"
|
echo "Removing network namespaces on the host"
|
||||||
ip netns delete $line
|
ip netns delete $line
|
||||||
done
|
done
|
||||||
|
|
||||||
ifconfig | grep tap | awk '{print $1;}'| cut -f1 -d':' | while read -r line ; do
|
ifconfig | grep tap | awk '{print $1;}'| cut -f1 -d':' | while read -r line ; do
|
||||||
echo "Removing tap interfaces on the host"
|
echo "Removing tap interfaces on the host"
|
||||||
ip link delete $line type veth
|
ip link delete $line type veth
|
||||||
done
|
done
|
||||||
|
|
||||||
ifconfig | grep brq | awk '{print $1;}'| cut -f1 -d':' | while read -r line ; do
|
ifconfig | grep brq | awk '{print $1;}'| cut -f1 -d':' | while read -r line ; do
|
||||||
echo "Removing linux bridges on the host"
|
echo "Removing linux bridges on the host"
|
||||||
ip link delete $line type bridge
|
ip link delete $line type bridge
|
||||||
done
|
done
|
||||||
|
|
||||||
ifconfig | grep vxlan | awk '{print $1;}'| cut -f1 -d':' | while read -r line ; do
|
ifconfig | grep vxlan | awk '{print $1;}'| cut -f1 -d':' | while read -r line ; do
|
||||||
echo "Removing vxlan interfaces on the host"
|
echo "Removing vxlan interfaces on the host"
|
||||||
ip link delete $line type vxlan
|
ip link delete $line type vxlan
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user