XVOL-1653 : Optimization during OMCI messaging
Decreasing getDevice and GetChildDevice queries towards Core.
Change-Id: I93a89360e49612b4e22f0b8cfcf36efec43b93d9
diff --git a/pyvoltha/adapters/extensions/omci/omci_cc.py b/pyvoltha/adapters/extensions/omci/omci_cc.py
index 5f76198..e7f306b 100644
--- a/pyvoltha/adapters/extensions/omci/omci_cc.py
+++ b/pyvoltha/adapters/extensions/omci/omci_cc.py
@@ -804,9 +804,14 @@
try:
self._rx_response[index] = None
- omci_msg = InterAdapterOmciMessage(message=hexify(str(frame)))
+ omci_msg = InterAdapterOmciMessage(
+ message=hexify(str(frame)),
+ proxy_address=self._proxy_address,
+ connect_status=self._device.connect_status)
- self.log.debug('inter-adapter-send-omci', omci_msg=omci_msg)
+ self.log.debug('inter-adapter-send-omci', omci_msg=omci_msg,
+ connect_status=self._device.connect_status,
+ channel_id=self._proxy_address.channel_id)
yield self._adapter_proxy.send_inter_adapter_message(
msg=omci_msg,