blob: 30ad08eec9a47133dcc777a7a13796b61e839cab [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 vaidya9632b5f2017-06-27 11:00:04 -070016syntax="proto3";
17option java_package = "org.onosproject.grpc.nb.net.link";
18
19package nb.net.link;
20
21import "net/LinkProto.proto";
22import "net/ConnectPointProto.proto";
23
24message getLinkCountRequest {
25}
26
27message getLinkCountReply {
28 int32 link_count = 1;
29}
30
31message getActiveLinksRequest {
32}
33
34message getActiveLinksReply {
35 repeated .net.LinkProto link = 1;
36}
37
38message getDeviceLinksRequest {
39 string device_id = 1;
40}
41
42message getDeviceLinksReply {
43 repeated .net.LinkProto link = 1;
44}
45
46message getDeviceEgressLinksRequest {
47 string device_id = 1;
48}
49
50message getDeviceEgressLinksReply {
51 repeated .net.LinkProto link = 1;
52}
53
54message getDeviceIngressLinksRequest {
55 string device_id = 1;
56}
57
58message getDeviceIngressLinksReply {
59 repeated .net.LinkProto link = 1;
60}
61
62message getLinksRequest {
63 .net.ConnectPointProto connect_point = 1;
64}
65
66message getLinksReply {
67 repeated .net.LinkProto link = 1;
68}
69
70message getEgressLinksRequest {
71 .net.ConnectPointProto connect_point = 1;
72}
73
74message getEgressLinksReply {
75 repeated .net.LinkProto link = 1;
76}
77
78message getIngressLinksRequest {
79 .net.ConnectPointProto connect_point = 1;
80}
81
82message getIngressLinksReply {
83 repeated .net.LinkProto link = 1;
84}
85
86message getLinkRequest {
87 .net.ConnectPointProto src = 1;
88 .net.ConnectPointProto dst = 2;
89}
90
91message getLinkReply {
92 .net.LinkProto link = 1;
93}
94
95service LinkService {
96 rpc getLinkCount(getLinkCountRequest) returns(getLinkCountReply) {}
97 rpc getLinks(getLinksRequest) returns(getLinksReply) {}
98 rpc getActiveLinks(getActiveLinksRequest) returns(getActiveLinksReply) {}
99 rpc getDeviceLinks(getDeviceLinksRequest) returns(getDeviceLinksReply) {}
100 rpc getDeviceEgressLinks(getDeviceEgressLinksRequest) returns(getDeviceEgressLinksReply) {}
101 rpc getDeviceIngressLinks(getDeviceIngressLinksRequest) returns(getDeviceIngressLinksReply) {}
102 rpc getEgressLinks(getEgressLinksRequest) returns(getEgressLinksReply) {}
103 rpc getIngressLinks(getIngressLinksRequest) returns(getIngressLinksReply) {}
104 rpc getLink(getLinkRequest) returns(getLinkReply) {}
105}