VOL-2691 ONU Discovery event not raised
Fix for ONU discovery event not raised from the openolt
adapter
Change-Id: Ib4430739bc37ab081914a67cc90d0d1fd0953dbc
diff --git a/internal/pkg/core/device_handler.go b/internal/pkg/core/device_handler.go
index 8b01c34..1fe5770 100644
--- a/internal/pkg/core/device_handler.go
+++ b/internal/pkg/core/device_handler.go
@@ -978,13 +978,12 @@
"pon-interface-id": ponintfid,
"serial-number": sn}, err).Log()
}
-
+ dh.eventMgr.OnuDiscoveryIndication(onuDiscInd, onuDevice.Id, onuID, sn, time.Now().UnixNano())
log.Infow("onu-child-device-added", log.Fields{"onuDevice": onuDevice, "sn": sn})
}
// we can now use the existing ONU Id
onuID = onuDevice.ProxyAddress.OnuId
-
//Insert the ONU into cache to use in OnuIndication.
//TODO: Do we need to remove this from the cache on ONU change, or wait for overwritten on next discovery.
log.Debugw("onu-discovery-indication-key-create", log.Fields{"onuID": onuID,