summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-01-29 11:30:47 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-05-31 16:19:01 +0900
commit0423ac05e9939ad8ecfefabd6b6de7d4dd4aaf8e (patch)
tree89863e0af3146d65bcd7e94aa1a2c1d78511061e /api/gobgp.proto
parentd433ceb87af7ae593d5ebf97d64e1c104ae763e2 (diff)
cli: Implement "neighbor update" command
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto15
1 files changed, 15 insertions, 0 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 2dafd351..7832c2ed 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -31,6 +31,7 @@ service GobgpApi {
rpc GetServer(GetServerRequest) returns (GetServerResponse) {}
rpc AddNeighbor(AddNeighborRequest) returns (AddNeighborResponse) {}
rpc DeleteNeighbor(DeleteNeighborRequest) returns (DeleteNeighborResponse) {}
+ rpc UpdateNeighbor(UpdateNeighborRequest) returns (UpdateNeighborResponse) {}
rpc GetNeighbor(GetNeighborRequest) returns (GetNeighborResponse) {}
rpc ResetNeighbor(ResetNeighborRequest) returns (ResetNeighborResponse) {}
rpc SoftResetNeighbor(SoftResetNeighborRequest) returns (SoftResetNeighborResponse) {}
@@ -157,6 +158,20 @@ message DeleteNeighborRequest {
message DeleteNeighborResponse {
}
+message UpdateNeighborRequest {
+ Peer peer = 1;
+ // Calls SoftResetIn after updating the neighbor configuration if needed.
+ bool do_soft_reset_in = 2;
+}
+
+message UpdateNeighborResponse {
+ // Indicates whether calling SoftResetIn is required due to this update. If
+ // "true" is set, the client should call SoftResetIn manually. If
+ // "do_soft_reset_in = true" is set in the request, always returned with
+ // "false".
+ bool needs_soft_reset_in = 1;
+}
+
message ResetNeighborRequest {
string address = 1;
string communication = 2;