Change ONOS rest urls to match the new ONOS rest urls
NOTE: wm/devices has been removed from ONOS and has not yet been added back
diff --git a/TestON/drivers/common/cli/check_status.py b/TestON/drivers/common/cli/check_status.py
index c725cec..8e870bc 100755
--- a/TestON/drivers/common/cli/check_status.py
+++ b/TestON/drivers/common/cli/check_status.py
@@ -3,10 +3,10 @@
import os
import sys
-# http://localhost:8080/wm/core/topology/switches/all/json
-# http://localhost:8080/wm/core/topology/links/json
-# http://localhost:8080/wm/registry/controllers/json
-# http://localhost:8080/wm/registry/switches/json"
+# http://localhost:8080/wm/onos/ng/switches/json
+# http://localhost:8080/wm/onos/ng/links/json
+# http://localhost:8080/wm/onos/registry/controllers/json
+# http://localhost:8080/wm/onos/registry/switches/json"
def get_json(url):
try:
@@ -28,14 +28,14 @@
retcode = 0
RestPort="8080"
- url="http://%s:%s/wm/core/topology/switches/all/json" % (RestIP, RestPort)
+ url="http://%s:%s/wm/onos/ng/switches/json" % (RestIP, RestPort)
parsedResult = get_json(url)
if parsedResult == "":
retcode = 1
return (retcode, "Rest API has an issue")
- url = "http://%s:%s/wm/registry/switches/json" % (RestIP, RestPort)
+ url = "http://%s:%s/wm/onos/registry/switches/json" % (RestIP, RestPort)
registry = get_json(url)
if registry == "":
@@ -72,7 +72,7 @@
buf = ""
retcode = 0
- url = "http://%s:%s/wm/core/topology/links/json" % (RestIP, RestPort)
+ url = "http://%s:%s/wm/onos/ng/links/json" % (RestIP, RestPort)
parsedResult = get_json(url)
if parsedResult == "":