commit | f49d6d716fc406a28f7c23dae630e828805a1f6d | [log] [tgz] |
---|---|---|
author | Masayoshi Kobayashi <masayoshi@onlab.us> | Sat Mar 16 00:54:09 2013 +0000 |
committer | Masayoshi Kobayashi <masayoshi@onlab.us> | Sat Mar 16 00:54:09 2013 +0000 |
tree | cda4cfbaef48ff7336000747e77def91f521a319 | |
parent | 84bd06e9e83d2a62fc6140445739ea533b3fa299 [diff] [blame] |
cleanup script to use gremlin
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)