[VOL-3153]Update pm config fails for openonu device
Change-Id: I48571f7899db67ef839fc8b9eb76f02d0388a3cb
diff --git a/python/adapters/brcm_openomci_onu/brcm_openomci_onu_adapter.py b/python/adapters/brcm_openomci_onu/brcm_openomci_onu_adapter.py
index 1761156..ac9b841 100644
--- a/python/adapters/brcm_openomci_onu/brcm_openomci_onu_adapter.py
+++ b/python/adapters/brcm_openomci_onu/brcm_openomci_onu_adapter.py
@@ -208,11 +208,11 @@
raise NotImplementedError()
# TODO(smbaker): When BrcmOpenomciOnuAdapter is updated to inherit from OnuAdapter, this function can be deleted
- def update_pm_config(self, device, pm_config):
+ def update_pm_config(self, device, pm_configs):
self.log.info("adapter-update-pm-config", device_id=device.id, serial_number=device.serial_number,
- pm_config=pm_config)
+ pm_configs=pm_configs)
handler = self.devices_handlers[device.id]
- handler.update_pm_config(device, pm_config)
+ handler.update_pm_config(device, pm_configs)
def update_flows_bulk(self, device, flows, groups):
'''
diff --git a/python/adapters/brcm_openomci_onu/brcm_openomci_onu_handler.py b/python/adapters/brcm_openomci_onu/brcm_openomci_onu_handler.py
index 9c8ebfa..3685da7 100644
--- a/python/adapters/brcm_openomci_onu/brcm_openomci_onu_handler.py
+++ b/python/adapters/brcm_openomci_onu/brcm_openomci_onu_handler.py
@@ -803,10 +803,10 @@
e=e, uni_id=uni_id, tp_path=tp_path,
alloc_id=alloc_id, gem_port_id=gem_port_id)
- def update_pm_config(self, device, pm_config):
+ def update_pm_config(self, device, pm_configs):
# TODO: This has not been tested
- self.log.info('update_pm_config', pm_config=pm_config)
- self._pm_metrics.update(pm_config)
+ self.log.info('update_pm_config', pm_configs=pm_configs)
+ self._pm_metrics.update(pm_configs)
def remove_onu_flows(self, device, flows):
self.log.debug('remove-onu-flows')
diff --git a/python/requirements.txt b/python/requirements.txt
index f03f4a0..1df4f3e 100644
--- a/python/requirements.txt
+++ b/python/requirements.txt
@@ -1,2 +1,2 @@
voltha-protos==3.3.2
-pyvoltha==2.4.2
+pyvoltha==2.4.3