[VOL-2012]: Ignore OltIndication with OperState as "up" if the OLT
state is already "up" in the OLT state machine.
Change-Id: Iac9dae49e096372ce1877514bad0d298b172dcf5
diff --git a/adaptercore/device_handler.go b/adaptercore/device_handler.go
index 9ad9941..e28a808 100644
--- a/adaptercore/device_handler.go
+++ b/adaptercore/device_handler.go
@@ -311,7 +311,7 @@
func (dh *DeviceHandler) handleOltIndication(oltIndication *oop.OltIndication) {
raisedTs := time.Now().UnixNano()
- if oltIndication.OperState == "up" {
+ if oltIndication.OperState == "up" && dh.transitionMap.currentDeviceState != deviceStateUp {
dh.transitionMap.Handle(DeviceUpInd)
} else if oltIndication.OperState == "down" {
dh.transitionMap.Handle(DeviceDownInd)