Merge pull request #85 from stevenvanrossem/master
[osm/vim-emu.git] / src / emuvim / api / zerorpc / network.py
index 1b7e1e0..8278422 100644 (file)
@@ -100,24 +100,13 @@ class DCNetworkApi(object):
             logging.exception("RPC error.")
             return ex.message
 
-    # setup the rate measurement for a vnf interface
-    def monitor_setup_rate_measurement(self, vnf_name, vnf_interface, metric):
-        logging.debug("RPC CALL: get rate")
-        try:
-            c = self.net.monitor_agent.setup_rate_measurement(vnf_name, vnf_interface, metric)
-            return c
-        except Exception as ex:
-            logging.exception("RPC error.")
-            return ex.message
-
-    # get egress(default) or ingress rate of a vnf
-    def monitor_get_rate(self, vnf_name, vnf_interface, metric):
-        logging.debug("RPC CALL: get rate")
+    # remove the rate measurement for a vnf interface
+    def stop_metric(self, vnf_name, vnf_interface, metric):
+        logging.debug("RPC CALL: stop metric")
         try:
-            c = self.net.monitor_agent.get_rate(vnf_name, vnf_interface, metric)
+            c = self.net.monitor_agent.stop_metric(vnf_name, vnf_interface, metric)
             return c
         except Exception as ex:
             logging.exception("RPC error.")
             return ex.message
 
-