blob: 30ad08eec9a47133dcc777a7a13796b61e839cab [file] [log] [blame]
/*
* Copyright 2017-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax="proto3";
option java_package = "org.onosproject.grpc.nb.net.link";
package nb.net.link;
import "net/LinkProto.proto";
import "net/ConnectPointProto.proto";
message getLinkCountRequest {
}
message getLinkCountReply {
int32 link_count = 1;
}
message getActiveLinksRequest {
}
message getActiveLinksReply {
repeated .net.LinkProto link = 1;
}
message getDeviceLinksRequest {
string device_id = 1;
}
message getDeviceLinksReply {
repeated .net.LinkProto link = 1;
}
message getDeviceEgressLinksRequest {
string device_id = 1;
}
message getDeviceEgressLinksReply {
repeated .net.LinkProto link = 1;
}
message getDeviceIngressLinksRequest {
string device_id = 1;
}
message getDeviceIngressLinksReply {
repeated .net.LinkProto link = 1;
}
message getLinksRequest {
.net.ConnectPointProto connect_point = 1;
}
message getLinksReply {
repeated .net.LinkProto link = 1;
}
message getEgressLinksRequest {
.net.ConnectPointProto connect_point = 1;
}
message getEgressLinksReply {
repeated .net.LinkProto link = 1;
}
message getIngressLinksRequest {
.net.ConnectPointProto connect_point = 1;
}
message getIngressLinksReply {
repeated .net.LinkProto link = 1;
}
message getLinkRequest {
.net.ConnectPointProto src = 1;
.net.ConnectPointProto dst = 2;
}
message getLinkReply {
.net.LinkProto link = 1;
}
service LinkService {
rpc getLinkCount(getLinkCountRequest) returns(getLinkCountReply) {}
rpc getLinks(getLinksRequest) returns(getLinksReply) {}
rpc getActiveLinks(getActiveLinksRequest) returns(getActiveLinksReply) {}
rpc getDeviceLinks(getDeviceLinksRequest) returns(getDeviceLinksReply) {}
rpc getDeviceEgressLinks(getDeviceEgressLinksRequest) returns(getDeviceEgressLinksReply) {}
rpc getDeviceIngressLinks(getDeviceIngressLinksRequest) returns(getDeviceIngressLinksReply) {}
rpc getEgressLinks(getEgressLinksRequest) returns(getEgressLinksReply) {}
rpc getIngressLinks(getIngressLinksRequest) returns(getIngressLinksReply) {}
rpc getLink(getLinkRequest) returns(getLinkReply) {}
}