VOL-1495: Use learned mib to add UNI ports

Also verify logical ports are added and device
state is updated properly to produce those
logical ports in the core.

Change-Id: I91e7a1757de5f98899ea1be2f7adaaedb0c473ba
diff --git a/python/adapters/brcm_openomci_onu/omci/brcm_mib_download_task.py b/python/adapters/brcm_openomci_onu/omci/brcm_mib_download_task.py
index 2d58fe0..00616d7 100644
--- a/python/adapters/brcm_openomci_onu/omci/brcm_mib_download_task.py
+++ b/python/adapters/brcm_openomci_onu/omci/brcm_mib_download_task.py
@@ -177,11 +177,11 @@
             self.log.debug('function-entry')
             self.log.info('perform-download')
 
-            device = self._handler.adapter_agent.get_device(self.device_id)
+            device = yield self._handler.core_proxy.get_device(self.device_id)
 
             if self._handler.enabled and len(self._handler.uni_ports) > 0:
                 device.reason = 'performing-initial-mib-download'
-                self._handler.adapter_agent.update_device(device)
+                yield self._handler.core_proxy.update_device(device)
 
             try:
                 # Lock the UNI ports to prevent any alarms during initial configuration