VOL-3248 Support for SetExtValue API
This commits adds a new SetExtValue API in the VOLTHA
core.
Change-Id: I2dd022cee9b22dd1d34f53420d5d75e68d440975
diff --git a/protos/voltha_protos/voltha.proto b/protos/voltha_protos/voltha.proto
index e6d9fdd..53e97d1 100644
--- a/protos/voltha_protos/voltha.proto
+++ b/protos/voltha_protos/voltha.proto
@@ -23,6 +23,7 @@
import "voltha_protos/omci_mib_db.proto";
import "voltha_protos/omci_alarm_db.proto";
+import "voltha_protos/ext_config.proto";
option java_package = "org.opencord.voltha";
option java_outer_classname = "VolthaProtos";
@@ -97,6 +98,13 @@
TestResponseResult result = 1;
}
+message ValueSet {
+ string id = 1;
+ oneof value{
+ config.AlarmConfig alarm_config = 2;
+ }
+}
+
// Voltha represents the Voltha cluster data. Each Core instance will hold a subset of
// the entire cluster. However, some items (e.g. adapters) will be held by all cores
// for better performance
@@ -602,6 +610,11 @@
get: "/api/v1/GetExtValue"
};
}
+ rpc SetExtValue(ValueSet) returns(google.protobuf.Empty) {
+ option (google.api.http) = {
+ get: "/api/v1/SetExtValue"
+ };
+ }
// omci start and stop cli implementation
rpc StartOmciTestAction(OmciTestRequest) returns(TestResponse) {