[VOL-4102] Adding exponential backoff to retry reconnection in case of a
gRPC connection drop to the device
Adding device-id to flow logs
Change-Id: Ia279743af6d052c5c9f1a5a62c3b183c82aab175
diff --git a/internal/pkg/core/openolt.go b/internal/pkg/core/openolt.go
index 6564e29..1be2825 100644
--- a/internal/pkg/core/openolt.go
+++ b/internal/pkg/core/openolt.go
@@ -54,6 +54,7 @@
lockDeviceHandlersMap sync.RWMutex
enableONUStats bool
enableGemStats bool
+ ReconnectTimeout time.Duration
}
//NewOpenOLT returns a new instance of OpenOLT
@@ -78,6 +79,7 @@
openOLT.configManager = cm
openOLT.enableONUStats = cfg.EnableONUStats
openOLT.enableGemStats = cfg.EnableGEMStats
+ openOLT.ReconnectTimeout = cfg.ReconnectTimeout
return &openOLT
}