[VOL-2012]: Ignore OltIndication with OperState as "up" if the OLT
state is already "up" in the OLT state machine.
Change-Id: I0e76b2bc8dd3934a08b679e355374c41fd5b4ba1
diff --git a/adaptercore/device_handler.go b/adaptercore/device_handler.go
index b157ca6..3ba0967 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)