Moved old REST APIs to point to the new network graph/topology implementation.
Switches URL is now /wm/onos/topology/switches/json (all/active/inactive filter has been dropped).
Change-Id: I6466bd303f2c352f42f6a47d425990fdfd45de63
diff --git a/web/restapi2.py b/web/restapi2.py
index 050d8a4..a84140b 100755
--- a/web/restapi2.py
+++ b/web/restapi2.py
@@ -57,7 +57,7 @@
ONOS_GUI3_HOST="http://gui3.onlab.us:8080"
ONOS_LOCAL_HOST="http://localhost:8080" ;# for Amazon EC2
-@app.route("/wm/onos/topology/switches/all/json")
+@app.route("/wm/onos/topology/switches/json")
def switches():
if request.args.get('proxy') == None:
host = ONOS_LOCAL_HOST
@@ -65,7 +65,7 @@
host = ONOS_GUI3_HOST
try:
- command = "curl -s %s/wm/onos/topology/switches/all/json" % (host)
+ command = "curl -s %s/wm/onos/topology/switches/json" % (host)
print command
result = os.popen(command).read()
except: