VOL-2017 library code was moved to voltha-lib-go
Change-Id: Ia4b27695cf7ec3377a64572972998d52b70a0a5f
diff --git a/rw_core/config/config.go b/rw_core/config/config.go
index 5f4a0e0..deae0f3 100644
--- a/rw_core/config/config.go
+++ b/rw_core/config/config.go
@@ -18,7 +18,7 @@
import (
"flag"
"fmt"
- "github.com/opencord/voltha-go/common/log"
+ "github.com/opencord/voltha-lib-go/pkg/log"
)
// RW Core service default constants
diff --git a/rw_core/core/adapter_manager.go b/rw_core/core/adapter_manager.go
index b67487f..5f2423e 100644
--- a/rw_core/core/adapter_manager.go
+++ b/rw_core/core/adapter_manager.go
@@ -20,9 +20,9 @@
"errors"
"fmt"
"github.com/gogo/protobuf/proto"
- "github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/common/probe"
- "github.com/opencord/voltha-go/db/model"
+ "github.com/opencord/voltha-lib-go/pkg/db/model"
+ "github.com/opencord/voltha-lib-go/pkg/log"
+ "github.com/opencord/voltha-lib-go/pkg/probe"
"github.com/opencord/voltha-protos/go/voltha"
"reflect"
"sync"
diff --git a/rw_core/core/adapter_proxy.go b/rw_core/core/adapter_proxy.go
index 9511b9d..57fa197 100755
--- a/rw_core/core/adapter_proxy.go
+++ b/rw_core/core/adapter_proxy.go
@@ -19,8 +19,8 @@
"context"
"github.com/golang/protobuf/ptypes"
a "github.com/golang/protobuf/ptypes/any"
- "github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/kafka"
+ "github.com/opencord/voltha-lib-go/pkg/kafka"
+ "github.com/opencord/voltha-lib-go/pkg/log"
ic "github.com/opencord/voltha-protos/go/inter_container"
"github.com/opencord/voltha-protos/go/openflow_13"
"github.com/opencord/voltha-protos/go/voltha"
diff --git a/rw_core/core/adapter_request_handler.go b/rw_core/core/adapter_request_handler.go
index 5247247..5e76e27 100644
--- a/rw_core/core/adapter_request_handler.go
+++ b/rw_core/core/adapter_request_handler.go
@@ -19,10 +19,10 @@
"errors"
"github.com/golang/protobuf/ptypes"
"github.com/golang/protobuf/ptypes/empty"
- "github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/db/model"
- "github.com/opencord/voltha-go/kafka"
"github.com/opencord/voltha-go/rw_core/utils"
+ "github.com/opencord/voltha-lib-go/pkg/db/model"
+ "github.com/opencord/voltha-lib-go/pkg/kafka"
+ "github.com/opencord/voltha-lib-go/pkg/log"
ic "github.com/opencord/voltha-protos/go/inter_container"
"github.com/opencord/voltha-protos/go/voltha"
"google.golang.org/grpc/codes"
diff --git a/rw_core/core/core.go b/rw_core/core/core.go
index f22f8b8..438d645 100644
--- a/rw_core/core/core.go
+++ b/rw_core/core/core.go
@@ -17,13 +17,13 @@
import (
"context"
- grpcserver "github.com/opencord/voltha-go/common/grpc"
- "github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/common/probe"
- "github.com/opencord/voltha-go/db/kvstore"
- "github.com/opencord/voltha-go/db/model"
- "github.com/opencord/voltha-go/kafka"
"github.com/opencord/voltha-go/rw_core/config"
+ "github.com/opencord/voltha-lib-go/pkg/db/kvstore"
+ "github.com/opencord/voltha-lib-go/pkg/db/model"
+ grpcserver "github.com/opencord/voltha-lib-go/pkg/grpc"
+ "github.com/opencord/voltha-lib-go/pkg/kafka"
+ "github.com/opencord/voltha-lib-go/pkg/log"
+ "github.com/opencord/voltha-lib-go/pkg/probe"
"github.com/opencord/voltha-protos/go/voltha"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
diff --git a/rw_core/core/device_agent.go b/rw_core/core/device_agent.go
index 23a6ab0..95e4f67 100755
--- a/rw_core/core/device_agent.go
+++ b/rw_core/core/device_agent.go
@@ -19,9 +19,9 @@
"context"
"fmt"
"github.com/gogo/protobuf/proto"
- "github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/db/model"
fu "github.com/opencord/voltha-go/rw_core/utils"
+ "github.com/opencord/voltha-lib-go/pkg/db/model"
+ "github.com/opencord/voltha-lib-go/pkg/log"
ic "github.com/opencord/voltha-protos/go/inter_container"
ofp "github.com/opencord/voltha-protos/go/openflow_13"
"github.com/opencord/voltha-protos/go/voltha"
diff --git a/rw_core/core/device_manager.go b/rw_core/core/device_manager.go
index 1b0f586..bb36966 100755
--- a/rw_core/core/device_manager.go
+++ b/rw_core/core/device_manager.go
@@ -18,11 +18,11 @@
import (
"context"
"errors"
- "github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/common/probe"
- "github.com/opencord/voltha-go/db/model"
- "github.com/opencord/voltha-go/kafka"
"github.com/opencord/voltha-go/rw_core/utils"
+ "github.com/opencord/voltha-lib-go/pkg/db/model"
+ "github.com/opencord/voltha-lib-go/pkg/kafka"
+ "github.com/opencord/voltha-lib-go/pkg/log"
+ "github.com/opencord/voltha-lib-go/pkg/probe"
ic "github.com/opencord/voltha-protos/go/inter_container"
ofp "github.com/opencord/voltha-protos/go/openflow_13"
"github.com/opencord/voltha-protos/go/voltha"
diff --git a/rw_core/core/device_ownership.go b/rw_core/core/device_ownership.go
index ade876b..53aaa5c 100644
--- a/rw_core/core/device_ownership.go
+++ b/rw_core/core/device_ownership.go
@@ -18,9 +18,9 @@
import (
"context"
"fmt"
- "github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/db/kvstore"
"github.com/opencord/voltha-go/rw_core/utils"
+ "github.com/opencord/voltha-lib-go/pkg/db/kvstore"
+ "github.com/opencord/voltha-lib-go/pkg/log"
"github.com/opencord/voltha-protos/go/voltha"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/rw_core/core/device_state_transitions.go b/rw_core/core/device_state_transitions.go
index 098a758..0c6fc7c 100644
--- a/rw_core/core/device_state_transitions.go
+++ b/rw_core/core/device_state_transitions.go
@@ -16,8 +16,8 @@
package core
import (
- "github.com/opencord/voltha-go/common/log"
"github.com/opencord/voltha-go/rw_core/coreIf"
+ "github.com/opencord/voltha-lib-go/pkg/log"
"github.com/opencord/voltha-protos/go/voltha"
)
diff --git a/rw_core/core/device_state_transitions_test.go b/rw_core/core/device_state_transitions_test.go
index dab88eb..b76b64a 100644
--- a/rw_core/core/device_state_transitions_test.go
+++ b/rw_core/core/device_state_transitions_test.go
@@ -16,8 +16,8 @@
package core
import (
- "github.com/opencord/voltha-go/common/log"
"github.com/opencord/voltha-go/rw_core/coreIf"
+ "github.com/opencord/voltha-lib-go/pkg/log"
"github.com/opencord/voltha-protos/go/voltha"
"github.com/stretchr/testify/assert"
"reflect"
diff --git a/rw_core/core/grpc_nbi_api_handler.go b/rw_core/core/grpc_nbi_api_handler.go
index 482abfc..44520c4 100755
--- a/rw_core/core/grpc_nbi_api_handler.go
+++ b/rw_core/core/grpc_nbi_api_handler.go
@@ -20,8 +20,8 @@
"errors"
"github.com/golang/protobuf/ptypes/empty"
da "github.com/opencord/voltha-go/common/core/northbound/grpc"
- "github.com/opencord/voltha-go/common/log"
"github.com/opencord/voltha-go/rw_core/utils"
+ "github.com/opencord/voltha-lib-go/pkg/log"
"github.com/opencord/voltha-protos/go/common"
"github.com/opencord/voltha-protos/go/omci"
"github.com/opencord/voltha-protos/go/openflow_13"
diff --git a/rw_core/core/logical_device_agent.go b/rw_core/core/logical_device_agent.go
index 9461c94..21f65fa 100644
--- a/rw_core/core/logical_device_agent.go
+++ b/rw_core/core/logical_device_agent.go
@@ -20,11 +20,11 @@
"errors"
"fmt"
"github.com/gogo/protobuf/proto"
- "github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/db/model"
fd "github.com/opencord/voltha-go/rw_core/flow_decomposition"
"github.com/opencord/voltha-go/rw_core/graph"
fu "github.com/opencord/voltha-go/rw_core/utils"
+ "github.com/opencord/voltha-lib-go/pkg/db/model"
+ "github.com/opencord/voltha-lib-go/pkg/log"
ic "github.com/opencord/voltha-protos/go/inter_container"
ofp "github.com/opencord/voltha-protos/go/openflow_13"
"github.com/opencord/voltha-protos/go/voltha"
diff --git a/rw_core/core/logical_device_manager.go b/rw_core/core/logical_device_manager.go
index fa9713f..b3f313c 100644
--- a/rw_core/core/logical_device_manager.go
+++ b/rw_core/core/logical_device_manager.go
@@ -18,10 +18,10 @@
import (
"context"
"errors"
- "github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/common/probe"
- "github.com/opencord/voltha-go/db/model"
- "github.com/opencord/voltha-go/kafka"
+ "github.com/opencord/voltha-lib-go/pkg/db/model"
+ "github.com/opencord/voltha-lib-go/pkg/kafka"
+ "github.com/opencord/voltha-lib-go/pkg/log"
+ "github.com/opencord/voltha-lib-go/pkg/probe"
"github.com/opencord/voltha-protos/go/openflow_13"
"github.com/opencord/voltha-protos/go/voltha"
"google.golang.org/grpc/codes"
diff --git a/rw_core/core/transaction.go b/rw_core/core/transaction.go
index 1b4370d..b607973 100644
--- a/rw_core/core/transaction.go
+++ b/rw_core/core/transaction.go
@@ -29,8 +29,8 @@
package core
import (
- "github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/db/kvstore"
+ "github.com/opencord/voltha-lib-go/pkg/db/kvstore"
+ "github.com/opencord/voltha-lib-go/pkg/log"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"time"
diff --git a/rw_core/flow_decomposition/flow_decomposer.go b/rw_core/flow_decomposition/flow_decomposer.go
index d4058bc..c3c66ca 100644
--- a/rw_core/flow_decomposition/flow_decomposer.go
+++ b/rw_core/flow_decomposition/flow_decomposer.go
@@ -18,10 +18,10 @@
import (
"github.com/gogo/protobuf/proto"
- "github.com/opencord/voltha-go/common/log"
"github.com/opencord/voltha-go/rw_core/coreIf"
"github.com/opencord/voltha-go/rw_core/graph"
fu "github.com/opencord/voltha-go/rw_core/utils"
+ "github.com/opencord/voltha-lib-go/pkg/log"
ofp "github.com/opencord/voltha-protos/go/openflow_13"
"github.com/opencord/voltha-protos/go/voltha"
)
diff --git a/rw_core/flow_decomposition/flow_decomposer_test.go b/rw_core/flow_decomposition/flow_decomposer_test.go
index 5e1dbe7..f122380 100644
--- a/rw_core/flow_decomposition/flow_decomposer_test.go
+++ b/rw_core/flow_decomposition/flow_decomposer_test.go
@@ -17,9 +17,9 @@
import (
"errors"
- "github.com/opencord/voltha-go/common/log"
"github.com/opencord/voltha-go/rw_core/graph"
fu "github.com/opencord/voltha-go/rw_core/utils"
+ "github.com/opencord/voltha-lib-go/pkg/log"
ofp "github.com/opencord/voltha-protos/go/openflow_13"
"github.com/opencord/voltha-protos/go/voltha"
"github.com/stretchr/testify/assert"
diff --git a/rw_core/graph/device_graph.go b/rw_core/graph/device_graph.go
index 357a709..5bfaf96 100644
--- a/rw_core/graph/device_graph.go
+++ b/rw_core/graph/device_graph.go
@@ -20,7 +20,7 @@
"errors"
"fmt"
"github.com/gyuho/goraph"
- "github.com/opencord/voltha-go/common/log"
+ "github.com/opencord/voltha-lib-go/pkg/log"
"github.com/opencord/voltha-protos/go/voltha"
"strconv"
"strings"
diff --git a/rw_core/main.go b/rw_core/main.go
index e74d1bb..09c72f4 100644
--- a/rw_core/main.go
+++ b/rw_core/main.go
@@ -19,15 +19,15 @@
"context"
"errors"
"fmt"
- grpcserver "github.com/opencord/voltha-go/common/grpc"
- "github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/common/probe"
- "github.com/opencord/voltha-go/common/version"
- "github.com/opencord/voltha-go/db/kvstore"
- "github.com/opencord/voltha-go/kafka"
"github.com/opencord/voltha-go/rw_core/config"
c "github.com/opencord/voltha-go/rw_core/core"
"github.com/opencord/voltha-go/rw_core/utils"
+ "github.com/opencord/voltha-lib-go/pkg/db/kvstore"
+ grpcserver "github.com/opencord/voltha-lib-go/pkg/grpc"
+ "github.com/opencord/voltha-lib-go/pkg/kafka"
+ "github.com/opencord/voltha-lib-go/pkg/log"
+ "github.com/opencord/voltha-lib-go/pkg/probe"
+ "github.com/opencord/voltha-lib-go/pkg/version"
ic "github.com/opencord/voltha-protos/go/inter_container"
"os"
"os/signal"
diff --git a/rw_core/utils/core_utils_test.go b/rw_core/utils/core_utils_test.go
index cb0abfe..27d24a1 100644
--- a/rw_core/utils/core_utils_test.go
+++ b/rw_core/utils/core_utils_test.go
@@ -16,7 +16,7 @@
package utils
import (
- "github.com/opencord/voltha-go/common/log"
+ "github.com/opencord/voltha-lib-go/pkg/log"
"github.com/stretchr/testify/assert"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
diff --git a/rw_core/utils/flow_utils.go b/rw_core/utils/flow_utils.go
index 4293126..7ead52d 100644
--- a/rw_core/utils/flow_utils.go
+++ b/rw_core/utils/flow_utils.go
@@ -21,7 +21,7 @@
"fmt"
"github.com/cevaris/ordered_map"
"github.com/gogo/protobuf/proto"
- "github.com/opencord/voltha-go/common/log"
+ "github.com/opencord/voltha-lib-go/pkg/log"
ofp "github.com/opencord/voltha-protos/go/openflow_13"
"math/big"
"strings"
diff --git a/rw_core/utils/flow_utils_test.go b/rw_core/utils/flow_utils_test.go
index c1b1da9..c51a778 100644
--- a/rw_core/utils/flow_utils_test.go
+++ b/rw_core/utils/flow_utils_test.go
@@ -16,7 +16,7 @@
package utils
import (
- "github.com/opencord/voltha-go/common/log"
+ "github.com/opencord/voltha-lib-go/pkg/log"
ofp "github.com/opencord/voltha-protos/go/openflow_13"
"github.com/stretchr/testify/assert"
"google.golang.org/grpc/codes"