"packets_in": tx_total,
"packets_dropped": (tx_total - rx_total),
"packets_fwd": rx_total,
- "collect_stats": self.resource_helper.collect_kpi(),
+ # we share ProxResourceHelper with TG, but we want to collect
+ # collectd KPIs here and not TG KPIs, so use a different method name
+ "collect_stats": self.resource_helper.collect_collectd_kpi(),
}
LOG.debug("%s collect KPIs %s", self.APP_NAME, result)
return result
self.setup_helper.kill_vnf()
self._tear_down()
self.resource_helper.stop_collect()
-
- def instantiate(self, scenario_cfg, context_cfg):
- # build config in parent process so we can access
- # config from TG subprocesses
- self.scenario_helper.scenario_cfg = scenario_cfg
- self.setup_helper.build_config_file()
- super(ProxApproxVnf, self).instantiate(scenario_cfg, context_cfg)