enhanced reset for contiv

This commit is contained in:
Erwan Miran
2018-09-17 16:46:19 +02:00
parent bcaf2f9ea3
commit afa2a5f1c4
5 changed files with 220 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -e
echo "Starting cleanup"
ovs-vsctl list-br | grep contiv | xargs -I % ovs-vsctl del-br %
for p in $(ifconfig | grep vport | awk '{print $1}');
do
ip link delete $p type veth
done
touch /tmp/cleanup.done
sleep 60