[VOL-3649] Reading endpoint from config
Change-Id: I2e79e2d3a038ade5de89cca51f04004512f7718b
diff --git a/cmd/openonu-adapter/main.go b/cmd/openonu-adapter/main.go
index 59e9a0e..878e619 100644
--- a/cmd/openonu-adapter/main.go
+++ b/cmd/openonu-adapter/main.go
@@ -288,7 +288,7 @@
Version: version.VersionInfo.Version,
// TODO once we'll be ready to support multiple versions of the adapter
// the Endpoint will have to change to `brcm_openomci_onu_<currentReplica`>
- Endpoint: "brcm_openomci_onu",
+ Endpoint: a.config.Topic,
Type: "brcm_openomci_onu",
CurrentReplica: int32(a.config.CurrentReplica),
TotalReplicas: int32(a.config.TotalReplicas),