VOL-291 : PON simulator refactoring for cluster integration
- Added ponsim build target in Makefile
- Added new option to vcore to select comm type with ponsim
- Modified all proto files to include destination go package
Amendments:
- Clean up based on review comments
- Properly close GRPC connections in ponsim_olt adapter
- Added voltha namespace to some k8s templates
Change-Id: I2f349fa7b3550a8a8cc8fc676cc896f33fbb9372
diff --git a/ponsim/v2/protos/ponsim_olt.proto b/ponsim/v2/protos/ponsim_olt.proto
new file mode 100644
index 0000000..82214a7
--- /dev/null
+++ b/ponsim/v2/protos/ponsim_olt.proto
@@ -0,0 +1,32 @@
+syntax = "proto3";
+
+option go_package = "github.com/opencord/voltha/protos/go/ponsim";
+
+package ponsim;
+
+service PonSimOlt {
+ rpc Register (RegistrationRequest) returns (RegistrationReply) {}
+}
+
+message RegistrationRequest {
+ string id = 1;
+ string address = 2;
+ int32 port = 3;
+}
+
+message RegistrationReply {
+ string id = 1;
+
+ enum Status {
+ REGISTERED = 0;
+ FAILED = 1;
+ UNAVAILABLE = 2;
+ }
+
+ Status status = 2;
+ string status_message = 3;
+
+ string parent_address = 4;
+ int32 parent_port = 5;
+ int32 assigned_port = 6;
+}