diff options
author | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2017-06-29 15:45:35 +0900 |
---|---|---|
committer | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2017-06-30 13:33:07 +0900 |
commit | 487c30fbc437d364e9dd313098c19376b8dfba97 (patch) | |
tree | 13641ed8eb0ea0e979ad8f8bfc055a83b4e16e34 /docs/sources/grpc-client.md | |
parent | aea13caea6ffc5a373fbfd5157c57d026b9f9a7a (diff) |
grpc: Update and Modify C++ sample client
This patch updates C++ sample gRPC client for GoBGP v1.12 gRPC API.
And this removes the route announcement feature from C++ sample client,
for maintenance and uniformity.
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'docs/sources/grpc-client.md')
-rw-r--r-- | docs/sources/grpc-client.md | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/docs/sources/grpc-client.md b/docs/sources/grpc-client.md index 088f6d60..1ebab7a8 100644 --- a/docs/sources/grpc-client.md +++ b/docs/sources/grpc-client.md @@ -90,18 +90,19 @@ $ bash build.sh ### Let's run it: ```bash -LD_LIBRARY_PATH=".:/opt/grpc/lib:/opt/protobuf_3.0.0_alpha4/lib" ./gobgp_api_client - -List of announced prefixes for route family: 65537 - -Prefix: 10.10.20.0/22 -NLRI: {"nlri":{"prefix":"10.10.20.0/22"},"attrs":[{"type":1,"value":0},{"type":3,"nexthop":"0.0.0.0"}]} - - -List of announced prefixes for route family: 65669 - -Prefix: [destination:10.0.0.0/24][protocol: tcp][source:20.0.0.0/24] -NLRI: {"nlri":{"value":[{"type":1,"value":{"prefix":"10.0.0.0/24"}},{"type":3,"value":[{"op":129,"value":6}]},{"type":2,"value":{"prefix":"20.0.0.0/24"}}]},"attrs":[{"type":1,"value":0},{"type":14,"nexthop":"0.0.0.0","afi":1,"safi":133,"value":[{"value":[{"type":1,"value":{"prefix":"10.0.0.0/24"}},{"type":3,"value":[{"op":129,"value":6}]},{"type":2,"value":{"prefix":"20.0.0.0/24"}}]}]},{"type":16,"value":[{"type":128,"subtype":8,"value":"10:10"}]}]} +$ ./gobgp_api_client 172.18.0.2 +BGP neighbor is: 10.0.0.2, remote AS: 1 + BGP version: 4, remote route ID + BGP state = active, up for 0 + BGP OutQ = 0, Flops = 0 + Hold time is 0, keepalive interval is 0seconds + Configured hold time is 90 +BGP neighbor is: 10.0.0.3, remote AS: 1 + BGP version: 4, remote route ID + BGP state = active, up for 0 + BGP OutQ = 0, Flops = 0 + Hold time is 0, keepalive interval is 0seconds + Configured hold time is 90 ``` ## <a name="nodejs"> Node.js |