VOL-2609: Ignore onuIndications for an already active ONU

Change-Id: I080cbafc97811a18ce5bf05bec3542a09fe39e87
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 a5bc1ea..deb498d 100644
--- a/python/adapters/brcm_openomci_onu/brcm_openomci_onu_handler.py
+++ b/python/adapters/brcm_openomci_onu/brcm_openomci_onu_handler.py
@@ -924,6 +924,12 @@
     def create_interface(self, onu_indication):
         self.log.info('create-interface', onu_id=onu_indication.onu_id,
                        serial_number=onu_indication.serial_number)
+
+        # Ignore if onu_indication is received for an already running ONU
+        if self._onu_omci_device is not None and self._onu_omci_device.active:
+            self.log.warn('received-onu-indication-for-active-onu', onu_indication=onu_indication)
+            return
+
         self._onu_indication = onu_indication
 
         yield self.core_proxy.device_state_update(self.device_id, oper_status=OperStatus.ACTIVATING,