rename rest api url for interfac monitoring
authorstevenvanrossem <steven.vanrossem@intec.ugent.be>
Sat, 28 Jan 2017 14:33:30 +0000 (15:33 +0100)
committerstevenvanrossem <steven.vanrossem@intec.ugent.be>
Sat, 28 Jan 2017 14:33:30 +0000 (15:33 +0100)
src/emuvim/api/rest/rest_api_endpoint.py

index 82a88c4..38e63cb 100755 (executable)
@@ -81,9 +81,9 @@ class RestApiEndpoint(object):
         # monitoring related actions
         # export a network interface traffic rate counter
         self.api.add_resource(MonitorInterfaceAction,
-                              "/restapi/monitor/vnf/<vnf_name>/<metric>",
-                              "/restapi/monitor/vnf/<vnf_name>/<vnf_interface>/<metric>",
-                              "/restapi/monitor/vnf/<vnf_name>/<vnf_interface>/<metric>/<cookie>")
+                              "/restapi/monitor/interface/<vnf_name>/<metric>",
+                              "/restapi/monitor/interface/<vnf_name>/<vnf_interface>/<metric>",
+                              "/restapi/monitor/interface/<vnf_name>/<vnf_interface>/<metric>/<cookie>")
         # export flow traffic counter, of a manually pre-installed flow entry, specified by its cookie
         self.api.add_resource(MonitorFlowAction,
                               "/restapi/monitor/flow/<vnf_name>/<metric>/<cookie>",