[VOL-3801] remove unused KV consul code in voltha-lib-go
Change-Id: Iedfd7c24440692d74c8f463d80f3ad259cbf2e6d
diff --git a/pkg/ponresourcemanager/ponresourcemanager.go b/pkg/ponresourcemanager/ponresourcemanager.go
index 408936b..0e1ae8f 100755
--- a/pkg/ponresourcemanager/ponresourcemanager.go
+++ b/pkg/ponresourcemanager/ponresourcemanager.go
@@ -140,7 +140,7 @@
Technology string
DeviceType string
DeviceID string
- Backend string // ETCD, or consul
+ Backend string // ETCD only currently
Address string // address of the KV store
OLTModel string
KVStore *db.Backend
@@ -159,8 +159,6 @@
func newKVClient(ctx context.Context, storeType string, address string, timeout time.Duration) (kvstore.Client, error) {
logger.Infow(ctx, "kv-store-type", log.Fields{"store": storeType})
switch storeType {
- case "consul":
- return kvstore.NewConsulClient(ctx, address, timeout)
case "etcd":
return kvstore.NewEtcdClient(ctx, address, timeout, log.WarnLevel)
}