| CONFIG_FILE=os.getenv("HOME") + "/ONOS/web/config.json" |
| global LB, TESTBED, controllers, core_switches, ONOS_GUI3_HOST, ONOS_GUI3_CONTROL_HOST |
| TESTBED = conf['TESTBED'] |
| controllers = conf['controllers'] |
| core_switches=conf['core_switches'] |
| ONOS_GUI3_HOST=conf['ONOS_GUI3_HOST'] |
| ONOS_GUI3_CONTROL_HOST=conf['ONOS_GUI3_CONTROL_HOST'] |
| if __name__ == "__main__": |
| sw_list = json.dumps(core_switches) |
| command = "curl -s -H 'Content-Type: application/json' -d '%s' http://%s:%s/wm/core/clearflowtable/json" % (sw_list, controllers[0], onos_rest_port) |
| result = os.popen(command).read() |
| print "REST IF has issue" |