[VOL-1346] This commit addresses device discovery notifications
which will be principally used by the affinity router. In doing so
this commit also rename the core_adapter.proto to inter_container.proto.
Change-Id: Ib2a7b84efa50367d0ffbc482fba6096a225f3150
diff --git a/protos/core_adapter.proto b/protos/inter_container.proto
similarity index 90%
rename from protos/core_adapter.proto
rename to protos/inter_container.proto
index 24390f5..931ddb9 100644
--- a/protos/core_adapter.proto
+++ b/protos/inter_container.proto
@@ -5,7 +5,7 @@
import public "logical_device.proto";
-option go_package = "github.com/opencord/voltha-go/protos/core_adapter";
+option go_package = "github.com/opencord/voltha-go/protos/inter_container";
package voltha;
@@ -40,6 +40,7 @@
enum MessageType {
REQUEST = 0;
RESPONSE = 1;
+ DEVICE_DISCOVERED=2;
}
message Header {
@@ -81,6 +82,12 @@
LogicalPort port = 1;
}
+message DeviceDiscovered {
+ string id = 1;
+ string parent_id = 2;
+ string device_type = 3;
+}
+
message InterAdapterMessageType {
enum Types {
FLOW_REQUEST = 0;
diff --git a/protos/scripts/build_protos.sh b/protos/scripts/build_protos.sh
index 0b2e17a..3602c23 100755
--- a/protos/scripts/build_protos.sh
+++ b/protos/scripts/build_protos.sh
@@ -37,7 +37,7 @@
$SRC_DIR/meta.proto \
$SRC_DIR/yang_options.proto"
-export CORE_ADAPTER_PB="$SRC_DIR/core_adapter.proto"
+export INTER_CONTAINER_PB="$SRC_DIR/inter_container.proto"
export SCHEMA_PB="$SRC_DIR/schema.proto"
export IETF_PB="$SRC_DIR/ietf_interfaces.proto"
export OF_PB="$SRC_DIR/openflow_13.proto"
@@ -46,7 +46,7 @@
export PB_VARS="\
VOLTHA_PB \
COMMON_PB \
- CORE_ADAPTER_PB \
+ INTER_CONTAINER_PB \
SCHEMA_PB \
IETF_PB \
OF_PB \