summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-05-11 20:34:56 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-05-19 16:33:16 +0900
commit8d0eb0a06bbdfaa47b4979dffed28a7f38b16680 (patch)
tree02075c54997b45ec543e09e2310b6201afd070ec /api/gobgp.proto
parent772dbed046cc75891cc37d7a34a85d94d6e40e8b (diff)
cli: add the show command for the neighbor conditions
% gobgp -u 10.0.255.1 policy neighbor Name Address ns0 10.0.0.2 ns1 2001::192:168:0:2 % gobgp -u 10.0.255.1 policy neighbor ns0 Name Address ns0 10.0.0.2
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto14
1 files changed, 14 insertions, 0 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 6a2e3844..7ee47965 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -35,6 +35,8 @@ service Grpc {
rpc GetPolicyPrefixes(PolicyArguments) returns (stream PrefixSet) {}
rpc GetPolicyPrefix(PolicyArguments) returns (PrefixSet) {}
rpc ModPolicyPrefix(stream PolicyArguments) returns (stream Error) {}
+ rpc GetPolicyNeighbors(PolicyArguments) returns (stream NeighborSet) {}
+ rpc GetPolicyNeighbor(PolicyArguments) returns (NeighborSet) {}
}
message Error {
@@ -62,6 +64,7 @@ message PolicyArguments {
Operation operation = 2;
string name = 3;
PrefixSet prefix_set = 4;
+ NeighborSet neighbor_set = 5;
}
enum Resource {
@@ -70,6 +73,7 @@ enum Resource {
ADJ_IN = 2;
ADJ_OUT = 3;
POLICY_PREFIX = 4;
+ POLICY_NEIGHBOR = 5;
}
enum Operation {
@@ -347,3 +351,13 @@ message PrefixSet {
string prefix_set_name = 1;
repeated Prefix prefix_list = 2;
}
+
+message Neighbor {
+ string address = 1;
+}
+
+message NeighborSet {
+ string neighbor_set_name = 1;
+ repeated Neighbor neighbor_list = 2;
+}
+