[VOL-5303]:Avoid reconciling the MEs with ONT
[VOL-5331] - Voltha DT PODTesets :: E2E pingtest fail
Change-Id: I7b105720435b970923b3ce86a7d37ed98a06c911
Signed-off-by: Praneeth Kumar Nalmas <praneeth.nalmas@radisys.com>
diff --git a/internal/pkg/mib/mib_sync.go b/internal/pkg/mib/mib_sync.go
index 954265d..9353d90 100755
--- a/internal/pkg/mib/mib_sync.go
+++ b/internal/pkg/mib/mib_sync.go
@@ -391,7 +391,17 @@
func (oo *OnuDeviceEntry) enterExaminingMdsState(ctx context.Context, e *fsm.Event) {
logger.Debugw(ctx, "MibSync FSM", log.Fields{"Start GetMds processing in State": e.FSM.Current(), "device-id": oo.deviceID})
- oo.requestMdsValue(ctx)
+ oo.pOpenOnuAc.RLockMutexDeviceHandlersMap()
+ dh, _ := oo.pOpenOnuAc.GetDeviceHandler(oo.deviceID)
+ oo.pOpenOnuAc.RUnlockMutexDeviceHandlersMap()
+ if dh.GetSkipOnuConfigEnabled() {
+ go func() {
+ _ = oo.PMibUploadFsm.PFsm.Event(UlEvSuccess)
+ }()
+ } else {
+ oo.requestMdsValue(ctx)
+ }
+
}
func (oo *OnuDeviceEntry) enterResynchronizingState(ctx context.Context, e *fsm.Event) {