blob: 99e0f2227d9ea3a034b7f258d6f70034dc6f264f [file] [log] [blame]
syntax = "proto3";
option java_package = "org.onosproject.grpc.net.link";
import "Link.proto";
package Link;
// Message to represent no return value
message Void {}
message LinkDetectedMsg {
// ProviderId scheme only
string provider_id = 1;
LinkDescription link_description = 2;
}
message LinkVanishedMsg {
// ProviderId scheme only
string provider_id = 1;
oneof subject {
LinkDescription link_description = 2;
ConnectPoint connect_point = 3;
string device_id = 4;
}
}
service LinkProviderServiceRpc {
rpc LinkDetected(LinkDetectedMsg) returns (Void);
rpc LinkVanished(LinkVanishedMsg) returns (Void);
}