[VOL-2736]host and port should be specified as a single argument not as two separate arguments
Change-Id: Id964d8e0d2e5867937de3efd239dd8a9250a56bb
diff --git a/cmd/ofagent/config.go b/cmd/ofagent/config.go
index 33bda04..ba8b710 100644
--- a/cmd/ofagent/config.go
+++ b/cmd/ofagent/config.go
@@ -36,8 +36,7 @@
ConnectionMaxRetries int
KVStoreType string
KVStoreTimeout time.Duration
- KVStoreHost string
- KVStorePort int
+ KVStoreAddress string
InstanceID string
}
@@ -121,9 +120,7 @@
flag.DurationVar(&(config.KVStoreTimeout), "kv_store_request_timeout", 5*time.Second, "The default timeout when making a kv store request")
- flag.StringVar(&(config.KVStoreHost), "kv_store_host", "voltha-etcd-cluster-client.voltha.svc.cluster.local", "KV store host")
-
- flag.IntVar(&(config.KVStorePort), "kv_store_port", 2379, "KV store port")
+ flag.StringVar(&(config.KVStoreAddress), "kv_store_address", "voltha-etcd-cluster-client.voltha.svc.cluster.local:2379", "KV store address")
flag.StringVar(&(config.LogLevel), "log_level", "WARN", "Log level")