Update topology rest urls
diff --git a/TestON/drivers/common/cli/check_status.py b/TestON/drivers/common/cli/check_status.py
index 8e870bc..791f1dd 100755
--- a/TestON/drivers/common/cli/check_status.py
+++ b/TestON/drivers/common/cli/check_status.py
@@ -3,8 +3,8 @@
import os
import sys
-# http://localhost:8080/wm/onos/ng/switches/json
-# http://localhost:8080/wm/onos/ng/links/json
+# http://localhost:8080/wm/onos/topology/switches
+# http://localhost:8080/wm/onos/topology/links
# http://localhost:8080/wm/onos/registry/controllers/json
# http://localhost:8080/wm/onos/registry/switches/json"
@@ -28,7 +28,7 @@
retcode = 0
RestPort="8080"
- url="http://%s:%s/wm/onos/ng/switches/json" % (RestIP, RestPort)
+ url="http://%s:%s/wm/onos/topology/switches" % (RestIP, RestPort)
parsedResult = get_json(url)
if parsedResult == "":
@@ -72,7 +72,7 @@
buf = ""
retcode = 0
- url = "http://%s:%s/wm/onos/ng/links/json" % (RestIP, RestPort)
+ url = "http://%s:%s/wm/onos/topology/links" % (RestIP, RestPort)
parsedResult = get_json(url)
if parsedResult == "":
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index 56a3e6d..0992ce9 100644
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -611,8 +611,8 @@
main.exit()
-# http://localhost:8080/wm/onos/topology/switches/json
-# http://localhost:8080/wm/onos/topology/links/json
+# http://localhost:8080/wm/onos/topology/switches
+# http://localhost:8080/wm/onos/topology/links
# http://localhost:8080/wm/onos/registry/controllers/json
# http://localhost:8080/wm/onos/registry/switches/json"
@@ -1007,7 +1007,7 @@
retport = [] # Switch port connected to to devices found with MAC
foundHost = []
try:
- ##### device rest API is: 'host:8080/wm/onos/topology/switches/json' ###
+ ##### device rest API is: 'host:8080/wm/onos/topology/switches' ###
url ="http://%s:%s%s" %(RestIP,RestPort,RestAPI)
try: