Make STC intent operations use intent IDs

Change-Id: Ib2eb4e66bd0243b2263c737fb074dbf3c34aa7fe
diff --git a/tools/test/bin/find-intent.py b/tools/test/bin/find-intent.py
new file mode 100755
index 0000000..e785a69
--- /dev/null
+++ b/tools/test/bin/find-intent.py
@@ -0,0 +1,19 @@
+#! /usr/bin/env python
+
+import requests
+
+from requests.auth import HTTPBasicAuth
+
+r = requests.get('http://192.168.56.101:8181/onos/v1/flows', auth=HTTPBasicAuth('onos', 'rocks'))
+deviceId = "of:0000000000000001"
+port = 4
+flowsJson = r.json()
+
+for flow in flowsJson["flows"]:
+    if deviceId == flow["deviceId"]:
+        if flow["treatment"]["instructions"][0]["port"] == port:
+            print flow
+
+
+
+