blob: e211e11a90304840b406f5dab1a15f0349a2e07c [file] [log] [blame]
HIGUCHI Yutae3e90632016-05-11 16:44:01 -07001syntax = "proto3";
2option java_package = "org.onosproject.grpc.net.link";
3
Jian Lic9b4bf12017-06-26 23:50:32 +09004import "net/link/LinkDescriptionProto.proto";
5import "net/ConnectPointProto.proto";
HIGUCHI Yutae3e90632016-05-11 16:44:01 -07006
7package Link;
8
9// Message to represent no return value
10message Void {}
11
12message LinkDetectedMsg {
13 // ProviderId scheme only
14 string provider_id = 1;
Jian Lic9b4bf12017-06-26 23:50:32 +090015 net.link.LinkDescriptionProto link_description = 2;
HIGUCHI Yutae3e90632016-05-11 16:44:01 -070016}
17
18message LinkVanishedMsg {
19 // ProviderId scheme only
20 string provider_id = 1;
21 oneof subject {
Jian Lic9b4bf12017-06-26 23:50:32 +090022 net.link.LinkDescriptionProto link_description = 2;
23 net.ConnectPointProto connect_point = 3;
HIGUCHI Yutae3e90632016-05-11 16:44:01 -070024 string device_id = 4;
25 }
26}
27
28service LinkProviderServiceRpc {
29 rpc LinkDetected(LinkDetectedMsg) returns (Void);
30 rpc LinkVanished(LinkVanishedMsg) returns (Void);
31}