VOL-1460 Updated core to use voltha-protos instead of local protos
Moved protos to python directory in order to maintain functionaly of containers built there.
Added capability to do local builds of protos
Added instructions on running dep ensure for getting protos.
Updated github.com/golang/protobuf version to v1.3.1
Change-Id: Ia6ef55f07f0d5dcb5b750d7c37b21b71db85bfc4
diff --git a/db/model/base_test.go b/db/model/base_test.go
index 38f4567..9d8a1a9 100644
--- a/db/model/base_test.go
+++ b/db/model/base_test.go
@@ -17,7 +17,7 @@
import (
"github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/protos/voltha"
+ "github.com/opencord/voltha-protos/go/voltha"
"runtime/debug"
"sync"
)
diff --git a/db/model/child_type.go b/db/model/child_type.go
index 224da9f..da6f688 100644
--- a/db/model/child_type.go
+++ b/db/model/child_type.go
@@ -21,7 +21,7 @@
"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/protos/common"
+ "github.com/opencord/voltha-protos/go/common"
"reflect"
"strconv"
"sync"
diff --git a/db/model/child_type_test.go b/db/model/child_type_test.go
index d604b76..349baa6 100644
--- a/db/model/child_type_test.go
+++ b/db/model/child_type_test.go
@@ -16,7 +16,7 @@
package model
import (
- "github.com/opencord/voltha-go/protos/voltha"
+ "github.com/opencord/voltha-protos/go/voltha"
"reflect"
"testing"
)
diff --git a/db/model/event_bus.go b/db/model/event_bus.go
index 71e0922..335d43f 100644
--- a/db/model/event_bus.go
+++ b/db/model/event_bus.go
@@ -20,7 +20,7 @@
"encoding/json"
"github.com/golang/protobuf/proto"
"github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/protos/voltha"
+ "github.com/opencord/voltha-protos/go/voltha"
)
// EventBus contains the details required to communicate with the event bus mechanism
diff --git a/db/model/event_bus_client.go b/db/model/event_bus_client.go
index f038cad..c9c1314 100644
--- a/db/model/event_bus_client.go
+++ b/db/model/event_bus_client.go
@@ -18,7 +18,7 @@
import (
"github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/protos/voltha"
+ "github.com/opencord/voltha-protos/go/voltha"
)
// EventBusClient is an abstraction layer structure to communicate with an event bus mechanism
diff --git a/db/model/node_test.go b/db/model/node_test.go
index d60cc44..240e918 100644
--- a/db/model/node_test.go
+++ b/db/model/node_test.go
@@ -19,9 +19,9 @@
"crypto/md5"
"fmt"
"github.com/golang/protobuf/ptypes/any"
- "github.com/opencord/voltha-go/protos/common"
- "github.com/opencord/voltha-go/protos/openflow_13"
- "github.com/opencord/voltha-go/protos/voltha"
+ "github.com/opencord/voltha-protos/go/common"
+ "github.com/opencord/voltha-protos/go/openflow_13"
+ "github.com/opencord/voltha-protos/go/voltha"
"reflect"
"testing"
)
diff --git a/db/model/proxy_load_test.go b/db/model/proxy_load_test.go
index 23c95e2..47df98c 100644
--- a/db/model/proxy_load_test.go
+++ b/db/model/proxy_load_test.go
@@ -19,9 +19,9 @@
"encoding/hex"
"github.com/google/uuid"
"github.com/opencord/voltha-go/common/log"
- "github.com/opencord/voltha-go/protos/common"
- "github.com/opencord/voltha-go/protos/openflow_13"
- "github.com/opencord/voltha-go/protos/voltha"
+ "github.com/opencord/voltha-protos/go/common"
+ "github.com/opencord/voltha-protos/go/openflow_13"
+ "github.com/opencord/voltha-protos/go/voltha"
"math/rand"
"reflect"
"strconv"
diff --git a/db/model/proxy_test.go b/db/model/proxy_test.go
index 0180ce1..1e93243 100644
--- a/db/model/proxy_test.go
+++ b/db/model/proxy_test.go
@@ -20,9 +20,9 @@
"encoding/json"
"github.com/golang/protobuf/proto"
"github.com/google/uuid"
- "github.com/opencord/voltha-go/protos/common"
- "github.com/opencord/voltha-go/protos/openflow_13"
- "github.com/opencord/voltha-go/protos/voltha"
+ "github.com/opencord/voltha-protos/go/common"
+ "github.com/opencord/voltha-protos/go/openflow_13"
+ "github.com/opencord/voltha-protos/go/voltha"
"math/rand"
"reflect"
"strconv"
diff --git a/db/model/transaction_test.go b/db/model/transaction_test.go
index 10ca520..b6e324e 100644
--- a/db/model/transaction_test.go
+++ b/db/model/transaction_test.go
@@ -19,8 +19,8 @@
import (
"encoding/hex"
"github.com/google/uuid"
- "github.com/opencord/voltha-go/protos/common"
- "github.com/opencord/voltha-go/protos/voltha"
+ "github.com/opencord/voltha-protos/go/common"
+ "github.com/opencord/voltha-protos/go/voltha"
"strconv"
"testing"
)