commit | 92d44d21ecc6c43375d05fe76aa0877840125a1c | [log] [tgz] |
---|---|---|
author | Umesh Krishnaswamy <krishji@gmail.com> | Thu Apr 04 21:41:16 2013 -0700 |
committer | Umesh Krishnaswamy <krishji@gmail.com> | Thu Apr 04 21:41:16 2013 -0700 |
tree | 9a63749f1c1dc2832517d695e84e8c5779869731 | |
parent | 2dff2a9d673ab2391fe8c157f64e411af248311d [diff] |
Add hooks for switch local and switch external rest calls
diff --git a/web/topology_rest.py b/web/topology_rest.py index d55bf7f..fbe254b 100755 --- a/web/topology_rest.py +++ b/web/topology_rest.py
@@ -647,6 +647,11 @@ elif cmd == "down": result=os.popen(stop_onos).read() ret = "controller %s is down" % (controller_name) + elif cmd == "local": + ret = "Switch local" + elif cmd == "ext": + ret = "Switch external" + return ret