Merge "Remove useless dependency on ifconfig"

This commit is contained in:
Jenkins 2016-03-16 02:17:48 +00:00 committed by Gerrit Code Review
commit a1037014d0

View File

@ -5,24 +5,24 @@ REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.." cd "$(dirname "$REAL_PATH")/.."
. tools/validate-docker-execute.sh . tools/validate-docker-execute.sh
# Spawning the neutron-agents container leaves artifacts on the host. # Spawning the neutron agents containers 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 namespace $line on the host" echo "Removing network namespace $line 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 ip -o link show | awk -F': ' '/tap/{print $2}' | while read -r ifname ; do
echo "Removing tap interface $line on the host" echo "Removing tap interface $ifname on the host"
ip link delete $line type veth ip link delete $ifname type veth
done done
ifconfig | grep brq | awk '{print $1;}'| cut -f1 -d':' | while read -r line ; do ip -o link show | awk -F': ' '/brq/{print $2}' | while read -r ifname ; do
echo "Removing linux bridge $line on the host" echo "Removing linux bridge $ifname on the host"
ip link delete $line type bridge ip link delete $ifname type bridge
done done
ifconfig | grep vxlan | awk '{print $1;}'| cut -f1 -d':' | while read -r line ; do ip -o link show | awk -F': ' '/vxlan/{print $2}' | while read -r ifname ; do
echo "Removing vxlan interface $line on the host" echo "Removing vxlan interface $ifname on the host"
ip link delete $line type vxlan ip link delete $ifname type vxlan
done done