X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fapi%2Frest%2Frest_api_endpoint.py;h=0ecf548f93370b609a9ec217a0521bc4ca94f07e;hb=e5ed9d18877fae6cf7b42af20bc19595c789568b;hp=7168f37b60ed4c754e46944fa2b36ac4a63cdae1;hpb=a6ce6f3c00d8d4ae7d378da7ddc6feccf9a38477;p=osm%2Fvim-emu.git diff --git a/src/emuvim/api/rest/rest_api_endpoint.py b/src/emuvim/api/rest/rest_api_endpoint.py index 7168f37..0ecf548 100755 --- a/src/emuvim/api/rest/rest_api_endpoint.py +++ b/src/emuvim/api/rest/rest_api_endpoint.py @@ -75,27 +75,24 @@ class RestApiEndpoint(object): # network related actions (setup chaining between VNFs) self.api.add_resource(NetworkAction, - "/restapi/network//") + "/restapi/network") # monitoring related actions # export a network interface traffic rate counter self.api.add_resource(MonitorInterfaceAction, - "/restapi/monitor/interface//", - "/restapi/monitor/interface///", - "/restapi/monitor/interface////") + "/restapi/monitor/interface") # export flow traffic counter, of a manually pre-installed flow entry, specified by its cookie self.api.add_resource(MonitorFlowAction, - "/restapi/monitor/flow///", - "/restapi/monitor/flow////") + "/restapi/monitor/flow") # install monitoring of a specific flow on a pre-existing link in the service. # the traffic counters of the newly installed monitor flow are exported self.api.add_resource(MonitorLinkAction, - "/restapi/monitor/link//") + "/restapi/monitor/link") # install skewness monitor of resource usage disribution # the skewness metric is exported self.api.add_resource(MonitorSkewAction, - "/restapi/monitor/skewness//") + "/restapi/monitor/skewness") logging.debug("Created API endpoint %s(%s:%d)" % (self.__class__.__name__, self.ip, self.port))