PMs are missing because OMCI processor has not started before PM FSM.
Wait for OMCI processor in PM module to start before starting PM FSM.
Change-Id: I10707d8626f1c11f97946307fa7343dcab7b4fb5
diff --git a/internal/pkg/common/interfaces.go b/internal/pkg/common/interfaces.go
index 7317a35..25c8da7 100755
--- a/internal/pkg/common/interfaces.go
+++ b/internal/pkg/common/interfaces.go
@@ -19,6 +19,7 @@
import (
"context"
+ "sync"
"time"
me "github.com/opencord/omci-lib-go/v2/generated"
@@ -66,7 +67,7 @@
ReasonUpdate(context.Context, uint8, bool) error
GetCollectorIsRunning() bool
- StartCollector(context.Context)
+ StartCollector(context.Context, *sync.WaitGroup)
InitPmConfigs()
GetPmConfigs() *voltha.PmConfigs
GetMetricsEnabled() bool