added grpc to get current config services for a node
This commit is contained in:
parent
a7764214d2
commit
0e6d1535db
4 changed files with 59 additions and 30 deletions
|
@ -32,23 +32,32 @@ message GetConfigServicesResponse {
|
|||
repeated ConfigService services = 1;
|
||||
}
|
||||
|
||||
message GetConfigServiceRequest {
|
||||
message GetNodeConfigServiceRequest {
|
||||
int32 session_id = 1;
|
||||
int32 node_id = 2;
|
||||
string name = 3;
|
||||
}
|
||||
|
||||
message GetConfigServiceResponse {
|
||||
message GetNodeConfigServiceResponse {
|
||||
map<string, string> config = 1;
|
||||
}
|
||||
|
||||
message SetConfigServiceRequest {
|
||||
message GetNodeConfigServicesRequest {
|
||||
int32 session_id = 1;
|
||||
int32 node_id = 2;
|
||||
}
|
||||
|
||||
message GetNodeConfigServicesResponse {
|
||||
repeated string services = 1;
|
||||
}
|
||||
|
||||
message SetNodeConfigServiceRequest {
|
||||
int32 session_id = 1;
|
||||
int32 node_id = 2;
|
||||
string name = 3;
|
||||
map<string, string> config = 4;
|
||||
}
|
||||
|
||||
message SetConfigServiceResponse {
|
||||
message SetNodeConfigServiceResponse {
|
||||
bool result = 1;
|
||||
}
|
||||
|
|
|
@ -107,9 +107,11 @@ service CoreApi {
|
|||
// config services
|
||||
rpc GetConfigServices (configservices.GetConfigServicesRequest) returns (configservices.GetConfigServicesResponse) {
|
||||
}
|
||||
rpc GetConfigService (configservices.GetConfigServiceRequest) returns (configservices.GetConfigServiceResponse) {
|
||||
rpc GetNodeConfigService (configservices.GetNodeConfigServiceRequest) returns (configservices.GetNodeConfigServiceResponse) {
|
||||
}
|
||||
rpc SetConfigService (configservices.SetConfigServiceRequest) returns (configservices.SetConfigServiceResponse) {
|
||||
rpc GetNodeConfigServices (configservices.GetNodeConfigServicesRequest) returns (configservices.GetNodeConfigServicesResponse) {
|
||||
}
|
||||
rpc SetNodeConfigService (configservices.SetNodeConfigServiceRequest) returns (configservices.SetNodeConfigServiceResponse) {
|
||||
}
|
||||
|
||||
// wlan rpc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue