Support connecting to multiple OpenFlow controllers
Change-Id: I0989d5031fb2d4f5aa78ba0e4576e465f826a419
diff --git a/cmd/ofagent/main.go b/cmd/ofagent/main.go
index 911c0b2..d2f1fc4 100644
--- a/cmd/ofagent/main.go
+++ b/cmd/ofagent/main.go
@@ -129,7 +129,7 @@
}
ofa, err := ofagent.NewOFAgent(&ofagent.OFAgent{
- OFControllerEndPoint: config.OFControllerEndPoint,
+ OFControllerEndPoints: config.OFControllerEndPoints,
VolthaApiEndPoint: config.VolthaApiEndPoint,
DeviceListRefreshInterval: config.DeviceListRefreshInterval,
ConnectionMaxRetries: config.ConnectionMaxRetries,