VOL-1453 Use adapter_proxy and core_proxy subscribing to topics

Adapter can now register with core, awaiting invocation from olt
onu discoveries.

Change-Id: I88e1dbb73f2e2e21090a29383d32ddc65005fc3a
diff --git a/python/adapters/brcm_openomci_onu/brcm_openomci_onu.py b/python/adapters/brcm_openomci_onu/brcm_openomci_onu.py
index d5cfb6f..36ad893 100644
--- a/python/adapters/brcm_openomci_onu/brcm_openomci_onu.py
+++ b/python/adapters/brcm_openomci_onu/brcm_openomci_onu.py
@@ -24,6 +24,7 @@
 from zope.interface import implementer
 
 from pyvoltha.adapters.interface import IAdapterInterface
+from pyvoltha.adapters.iadapter import OnuAdapter
 from pyvoltha.protos import third_party
 from pyvoltha.protos.adapter_pb2 import Adapter
 from pyvoltha.protos.adapter_pb2 import AdapterConfig
@@ -59,17 +60,19 @@
         )
     ]
 
-    def __init__(self, adapter_agent, config):
+    def __init__(self, core_proxy, adapter_proxy, config):
         log.debug('function-entry', config=config)
-        self.adapter_agent = adapter_agent
+        self.core_proxy = core_proxy
+        self.adapter_agent = adapter_proxy
         self.config = config
         self.descriptor = Adapter(
             id=self.name,
             vendor='Voltha project',
-            version='0.50',
+            version='2.0',
             config=AdapterConfig(log_level=LogLevel.INFO)
         )
         self.devices_handlers = dict()
+        self.device_handler_class = BrcmOpenomciOnuHandler
 
         # Customize OpenOMCI for Broadcom ONUs
         self.broadcom_omci = deepcopy(OpenOmciAgentDefaults)
@@ -79,9 +82,6 @@
 
         # Defer creation of omci agent to a lazy init that allows subclasses to override support classes
 
-        # register for adapter messages
-        self.adapter_agent.register_for_inter_adapter_messages()
-
     def custom_me_entities(self):
         return None