Merge branch 'master' of github.com:OPENNETWORKINGLAB/ONOS
diff --git a/cleanup-cassandra.sh b/cleanup-cassandra.sh
new file mode 100755
index 0000000..2844c1a
--- /dev/null
+++ b/cleanup-cassandra.sh
@@ -0,0 +1,3 @@
+#! /bin/bash
+DIR=~/ONOS
+~/titan-0.2.0/bin/gremlin.sh -e $DIR/cleanup-onos-db 
diff --git a/cleanup-onos-db b/cleanup-onos-db
new file mode 100644
index 0000000..8949fea
--- /dev/null
+++ b/cleanup-onos-db
@@ -0,0 +1,6 @@
+g=TitanFactory.open('/tmp/cassandra.titan')
+g.V('type','port').each{g.removeVertex(it)}
+g.V('type','switch').each{g.removeVertex(it)}
+g.V('type','flow').each{g.removeVertex(it)}
+g.V('type','flow_entry').each{g.removeVertex(it)}
+g.stopTransaction(SUCCESS)