added demos to the repo
[groupbasedpolicy.git] / demos / gbpsfc-env / vmclean.sh
diff --git a/demos/gbpsfc-env/vmclean.sh b/demos/gbpsfc-env/vmclean.sh
new file mode 100644 (file)
index 0000000..3974b38
--- /dev/null
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+docker stop -t=1 $(docker ps -a -q) > /dev/null 2>&1
+docker rm $(docker ps -a -q) > /dev/null 2>&1
+
+/etc/init.d/openvswitch-switch stop > /dev/null
+rm /etc/openvswitch/conf.db > /dev/null
+/etc/init.d/openvswitch-switch start > /dev/null
+
+
+ovs-vsctl show
+