[VOL-936] add changes for onu distance proto
Change-Id: Iedc44ff0c1c26a7d3623d4b7d96bb2d425d5d24f
diff --git a/protos/voltha_protos/common.proto b/protos/voltha_protos/common.proto
index 6ca156c..91e1fb1 100644
--- a/protos/voltha_protos/common.proto
+++ b/protos/voltha_protos/common.proto
@@ -96,3 +96,28 @@
// Additional Info
string additional_info = 2;
}
+message ValueType {
+ enum Type {
+ EMPTY = 0;
+ DISTANCE = 1;
+ }
+}
+message ValueSpecifier {
+ string id = 1;
+ ValueType.Type value = 2;
+}
+
+message ReturnValues {
+ uint32 Set = 1; // Specifies what values are
+ // set/valid in return
+
+ uint32 Unsupported = 2; // Specifies requested values not
+ // supported by the device
+
+ uint32 Error = 3; // Specifies requested values not
+ // fetched because of error
+
+ uint32 Distance = 4; // Value of distance Set includes
+ // DISTANCE
+
+}
diff --git a/protos/voltha_protos/openolt.proto b/protos/voltha_protos/openolt.proto
index 253556a..bb04eed 100644
--- a/protos/voltha_protos/openolt.proto
+++ b/protos/voltha_protos/openolt.proto
@@ -21,6 +21,7 @@
package openolt;
import "google/api/annotations.proto";
import public "voltha_protos/tech_profile.proto";
+import public "voltha_protos/common.proto";
service Openolt {
@@ -172,6 +173,14 @@
body: "*"
};
}
+
+ rpc GetExtValue(ValueParam) returns (common.ReturnValues) {
+ option (google.api.http) = {
+ post: "/v1/GetExtValue"
+ body: "*"
+ };
+ }
+
}
message Indication {
@@ -586,7 +595,10 @@
Action action = 4;
}
-
+message ValueParam {
+ Onu onu = 1;
+ common.ValueType.Type value = 2;
+}
message Empty {}
diff --git a/protos/voltha_protos/voltha.proto b/protos/voltha_protos/voltha.proto
index b8edd31..e6d9fdd 100644
--- a/protos/voltha_protos/voltha.proto
+++ b/protos/voltha_protos/voltha.proto
@@ -597,6 +597,11 @@
body: "*"
};
}
+ rpc GetExtValue(common.ValueSpecifier) returns(common.ReturnValues) {
+ option (google.api.http) = {
+ get: "/api/v1/GetExtValue"
+ };
+ }
// omci start and stop cli implementation
rpc StartOmciTestAction(OmciTestRequest) returns(TestResponse) {