summaryrefslogtreecommitdiffhomepage
path: root/docs/sources/grpc-client.md
diff options
context:
space:
mode:
authorSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-06-29 15:53:16 +0900
committerSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-06-30 13:36:04 +0900
commite32b74d178254bc3cefc0c8e095d191f98820008 (patch)
treea8df5aaf0a276d7945be3b8adc10d8433fb3c4e6 /docs/sources/grpc-client.md
parent487c30fbc437d364e9dd313098c19376b8dfba97 (diff)
grpc: Add command to run Nodejs sample client
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'docs/sources/grpc-client.md')
-rw-r--r--docs/sources/grpc-client.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/sources/grpc-client.md b/docs/sources/grpc-client.md
index 1ebab7a8..bcdec525 100644
--- a/docs/sources/grpc-client.md
+++ b/docs/sources/grpc-client.md
@@ -112,13 +112,15 @@ BGP neighbor is: 10.0.0.3, remote AS: 1
Copy protocol definition.
```bash
-cp $GOPATH/src/github.com/osrg/gobgp/api/gobgp.proto .
+$ cd $GOPATH/src/github.com/osrg/gobgp/tools/grpc/nodejs
+$ ln -s $GOPATH/src/github.com/osrg/gobgp/api/gobgp.proto
```
['tools/grpc/nodejs/get_neighbor.js'](https://github.com/osrg/gobgp/blob/master/tools/grpc/nodejs/get_neighbors.js) shows an example to show neighbor information.
Let's run this:
```
+$ node get_neighbors.js
BGP neighbor: 10.0.255.1 , remote AS: 65001
BGP version 4, remote router ID: 10.0.255.1
BGP state: BGP_FSM_ESTABLISHED , uptime: Wed Jul 20 2016 05:37:22 GMT+0900 (JST)