blob: 99e0f2227d9ea3a034b7f258d6f70034dc6f264f [file] [log] [blame]
HIGUCHI Yutae3e90632016-05-11 16:44:01 -07001syntax = "proto3";
2option java_package = "org.onosproject.grpc.net.link";
3
4import "Link.proto";
5
6package Link;
7
8// Message to represent no return value
9message Void {}
10
11message LinkDetectedMsg {
12 // ProviderId scheme only
13 string provider_id = 1;
14 LinkDescription link_description = 2;
15}
16
17message LinkVanishedMsg {
18 // ProviderId scheme only
19 string provider_id = 1;
20 oneof subject {
21 LinkDescription link_description = 2;
22 ConnectPoint connect_point = 3;
23 string device_id = 4;
24 }
25}
26
27service LinkProviderServiceRpc {
28 rpc LinkDetected(LinkDetectedMsg) returns (Void);
29 rpc LinkVanished(LinkVanishedMsg) returns (Void);
30}