Bug fix in kpi handling
Change-Id: Ic23b32f1b33c5616f38a3c7f0d1201823c48ec29
diff --git a/voltha/adapters/asfvolt16_olt/asfvolt16_device_handler.py b/voltha/adapters/asfvolt16_olt/asfvolt16_device_handler.py
index d77c23d..651061d 100644
--- a/voltha/adapters/asfvolt16_olt/asfvolt16_device_handler.py
+++ b/voltha/adapters/asfvolt16_olt/asfvolt16_device_handler.py
@@ -164,6 +164,7 @@
self.ont_anis = dict()
self.v_enets = dict()
self.traffic_descriptors = dict()
+ self.adapter_name = adapter.name
self.uni_port_num = 20
self.pm_metrics = None
self.heartbeat_count = 0
@@ -357,9 +358,9 @@
@inlineCallbacks
def _req_pm_counter_from_device_in_loop(self, device):
# NNI port is hardcoded to 0
- kpi_status = 0
+ kpi_status = -1
try:
- pm_counters = yield self.bal.get_bal_stats(0)
+ pm_counters = yield self.bal.get_bal_nni_stats(0)
kpi_status = 0
except Exception, e:
kpi_status = -1