c12s-kubespray/roles/network_plugin/contiv/files/contiv-cleanup.sh

11 lines
231 B
Bash
Raw Normal View History

2018-09-17 14:46:19 +00:00
#!/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