blob: feabc505ad5392ae56dbaccbabe7c21f50787221 [file] [log] [blame]
Jian Li841a8b92017-11-23 01:31:22 +09001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
shivani vaidya530917c2017-07-11 11:27:48 -070016syntax="proto3";
17option java_package = "org.onosproject.grpc.nb.net.region";
18
19package nb.net.region;
20
21import "net/RegionProto.proto";
22
23message getRegionsRequest {
24}
25
26message getRegionsReply {
27 repeated .net.RegionProto region = 1;
28}
29
30message getRegionRequest {
31 string regionId = 1;
32}
33
34message getRegionReply {
35 .net.RegionProto region = 1;
36}
37
38message getRegionForDeviceRequest {
39 string deviceId = 1;
40}
41
42message getRegionForDeviceReply {
43 .net.RegionProto region = 1;
44}
45
46message getRegionDevicesRequest {
47 string regionId = 1;
48}
49
50message getRegionDevicesReply {
51 repeated string deviceId = 1;
52}
53
54message getRegionHostsRequest {
55 string regionId = 1;
56}
57
58message getRegionHostsReply {
59 repeated string hostId = 1;
60}
61
62service RegionService {
63 rpc getRegions(getRegionsRequest) returns (getRegionsReply) {}
64 rpc getRegion(getRegionRequest) returns (getRegionReply) {}
65 rpc getRegionForDevice(getRegionForDeviceRequest) returns (getRegionForDeviceReply) {}
66 rpc getRegionDevices(getRegionDevicesRequest) returns (getRegionDevicesReply) {}
67 rpc getRegionHosts(getRegionHostsRequest) returns (getRegionHostsReply) {}
68}