VOL-1453: yield adapter_agent/core_proxy call updated api
ONU now can proceed past activation and add PON port.
omci agent started and ready
Waiting on onu_indication from olt to "create_interface"
and start openomci state machines.
Change-Id: I90995cfcffb7926b273ea71e4432d891a364d36f
diff --git a/python/adapters/brcm_openomci_onu/pon_port.py b/python/adapters/brcm_openomci_onu/pon_port.py
index 4d93567..887d3f3 100644
--- a/python/adapters/brcm_openomci_onu/pon_port.py
+++ b/python/adapters/brcm_openomci_onu/pon_port.py
@@ -160,6 +160,7 @@
peers=[])
return self._port
+ @inlineCallbacks
def _update_adapter_agent(self):
"""
Update the port status and state in the core
@@ -174,7 +175,8 @@
# adapter_agent add_port also does an update of port status
try:
- self._handler.adapter_agent.add_port(self._handler.device_id, self.get_port())
+ yield self._handler.adapter_agent.port_state_update(self._handler.device_id, self._port.type,
+ self._port.port_no,self._port.oper_status)
except Exception as e:
self.log.exception('update-port', e=e)