[VOL-3955] Sporadically an ONU does not reach pre-reconciling reason in multiple ONU-scenario
Change-Id: I7d40a894d2f0852e3036fd99bd7d8bb7309df7f0
diff --git a/internal/pkg/onuadaptercore/device_handler.go b/internal/pkg/onuadaptercore/device_handler.go
index ac04031..9993baa 100644
--- a/internal/pkg/onuadaptercore/device_handler.go
+++ b/internal/pkg/onuadaptercore/device_handler.go
@@ -946,10 +946,8 @@
}
}
-func (dh *deviceHandler) reconcileMetrics(ctx context.Context) {
- logger.Debugw(ctx, "reconciling - trigger metrics - to be implemented in scope of VOL-3324!", log.Fields{"device-id": dh.deviceID})
-
- //TODO: reset of reconciling-flag has always to be done in the last reconcile*() function
+func (dh *deviceHandler) reconcileEnd(ctx context.Context) {
+ logger.Debugw(ctx, "reconciling - completed!", log.Fields{"device-id": dh.deviceID})
dh.stopReconciling(ctx)
}
@@ -1965,7 +1963,7 @@
// or even some previous flow add activity on the same port
_ = dh.deviceReasonUpdate(ctx, drOmciFlowsPushed, !dh.isReconciling())
if dh.isReconciling() {
- go dh.reconcileMetrics(ctx)
+ go dh.reconcileEnd(ctx)
}
}
} else {