- # 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")
- try:
- c = self.net.monitor_agent.get_rate(vnf_name, vnf_interface, metric)
- return c
- except Exception as ex:
- logging.exception("RPC error.")
- return ex.message