- APIs created for profile operations. (insert/delete)
- VoipSystem and VoipUser profiles created for common and user specific voip parameters.
[VOL-4436], [VOL-4444]
Change-Id: I8986f44232a1edebcc4fcb1fda88da94773dd1af
diff --git a/protos/voltha_protos/voltha.proto b/protos/voltha_protos/voltha.proto
index 359858e..be9ff96 100755
--- a/protos/voltha_protos/voltha.proto
+++ b/protos/voltha_protos/voltha.proto
@@ -21,6 +21,8 @@
import "voltha_protos/openflow_13.proto";
import "voltha_protos/events.proto";
import "voltha_protos/extensions.proto";
+import "voltha_protos/voip_system_profile.proto";
+import "voltha_protos/voip_user_profile.proto";
import "voltha_protos/omci_mib_db.proto";
import "voltha_protos/omci_alarm_db.proto";
@@ -576,5 +578,35 @@
body: "*"
};
}
+
+ // Saves or updates system wide configuration into voltha KV
+ rpc PutVoipSystemProfile(voip_system_profile.VoipSystemProfileRequest) returns(google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/api/v1/voip_system_profile"
+ body: "*"
+ };
+ }
+
+ // Deletes the given profile from voltha KV
+ rpc DeleteVoipSystemProfile(common.Key) returns(google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/api/v1/voip_system_profile/{key}/delete"
+ };
+ }
+
+ // Saves or updates a profile (VOIP) into voltha KV
+ rpc PutVoipUserProfile(voip_user_profile.VoipUserProfileRequest) returns(google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/api/v1/voip_user_profile"
+ body: "*"
+ };
+ }
+
+ // Deletes the given profile from voltha KV
+ rpc DeleteVoipUserProfile(common.Key) returns(google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/api/v1/voip_user_profile/{key}/delete"
+ };
+ }
}