From e314f126c1c5dc81c0d8ab33a4b450a10674052c Mon Sep 17 00:00:00 2001 From: Satoshi Fujimoto Date: Thu, 29 Jun 2017 14:46:45 +0900 Subject: grpc: Update Ruby sample for GoBGP v1.20 gRPC API Signed-off-by: Satoshi Fujimoto --- docs/sources/grpc-client.md | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'docs/sources/grpc-client.md') diff --git a/docs/sources/grpc-client.md b/docs/sources/grpc-client.md index 32acef14..3cb8e55c 100644 --- a/docs/sources/grpc-client.md +++ b/docs/sources/grpc-client.md @@ -64,19 +64,13 @@ $ protoc -I $GOBGP_API --ruby_out=. --grpc_out=. --plugin=protoc-gen-grpc=`whic Let's run this script. ```bash -$ruby -I . ./get_neighbors.rb -BGP neighbor is 192.168.10.2, remote AS 65001 - BGP version 4, remote route ID - BGP state = BGP_FSM_ACTIVE, up for 0 - BGP OutQ = 0, Flops = 0 - Hold time is 0, keepalive interval is 0 seconds - Configured hold time is 90 -BGP neighbor is 192.168.10.3, remote AS 65001 - BGP version 4, remote route ID - BGP state = BGP_FSM_ACTIVE, up for 0 - BGP OutQ = 0, Flops = 0 - Hold time is 0, keepalive interval is 0 seconds - Configured hold time is 90 +$ ruby -I . ./get_neighbors.rb 172.18.0.2 +BGP neighbor is 10.0.0.2, remote AS 65002 + BGP version 4, remote route ID + BGP state = active, up for 0 + BGP OutQ = 0, Flops = 0 + Hold time is 0, keepalive interval is 0 seconds + Configured hold time is 90 ``` ## C++ -- cgit v1.2.3