[VOL-4492] sporadic issue ensuring the expected device reason (mib state) in Multi-UNI/Multi-ONU deployments
Signed-off-by: mpagenko <michael.pagenkopf@adtran.com>
Change-Id: I8bba7f190799e81045f78a3299cf7645baf23893
diff --git a/internal/pkg/mib/mib_sync.go b/internal/pkg/mib/mib_sync.go
index 6e2378e..6ff7425 100755
--- a/internal/pkg/mib/mib_sync.go
+++ b/internal/pkg/mib/mib_sync.go
@@ -305,7 +305,7 @@
if oo.getMibFromTemplate(ctx) {
oo.baseDeviceHandler.StartReconciling(ctx, true)
oo.baseDeviceHandler.AddAllUniPorts(ctx)
- oo.baseDeviceHandler.SetDeviceReason(cmn.DrInitialMibDownloaded)
+ _ = oo.baseDeviceHandler.ReasonUpdate(ctx, cmn.DrInitialMibDownloaded, false)
oo.baseDeviceHandler.SetReadyForOmciConfig(true)
if !oo.baseDeviceHandler.GetCollectorIsRunning() {
@@ -328,7 +328,7 @@
if oo.SOnuPersistentData.PersUniDisableDone {
oo.MutexPersOnuConfig.RUnlock()
oo.baseDeviceHandler.DisableUniPortStateUpdate(ctx)
- oo.baseDeviceHandler.SetDeviceReason(cmn.DrOmciAdminLock)
+ _ = oo.baseDeviceHandler.ReasonUpdate(ctx, cmn.DrOmciAdminLock, false)
} else {
oo.MutexPersOnuConfig.RUnlock()
oo.baseDeviceHandler.EnableUniPortStateUpdate(ctx)