[VOL-5557]:During reconcilation process of openolt adapter , while reconciling the ONU info, the ONTS which are active before and later are not added to ONU cache.
Change-Id: I3aa95095c32f770533fa987e2929813fdc91a608
Signed-off-by: balaji.nagarajan <balaji.nagarajan@radisys.com>
diff --git a/internal/pkg/core/device_handler.go b/internal/pkg/core/device_handler.go
index b8be44b..d7ea844 100755
--- a/internal/pkg/core/device_handler.go
+++ b/internal/pkg/core/device_handler.go
@@ -954,6 +954,13 @@
go dh.eventMgr.ProcessEvents(ctx, alarmInd, dh.device.Id, raisedTs)
dh.putOnuIndicationToChannel(ctx, OnuIndication, intfID)
+ case onuLosFromOlt.String() == "OFF" && onuConnectStatusFromCore.String() == "REACHABLE":
+ //Nothing to Indicate , just add the onu to the device handler onu cache
+ deviceType := onuDeviceFromCore.Type
+ deviceID := onuDeviceFromCore.Id
+ proxyDeviceID := onuDeviceFromCore.ProxyAddress.DeviceId
+ onuKey := dh.formOnuKey(intfID, onuID)
+ dh.onus.Store(onuKey, NewOnuDevice(deviceID, deviceType, onuDeviceFromCore.SerialNumber, onuID, intfID, proxyDeviceID, false, onuDeviceFromCore.AdapterEndpoint))
}
}
}