summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorGeorge Melikov <mail@gmelikov.ru>2019-07-16 16:22:48 +0300
committergmelikov <mail@gmelikov.ru>2019-07-16 16:30:04 +0300
commit426709893303ecd0ff189cfe0b24eda89edef95e (patch)
treec833fb9520733381ddaa28ec5ac84421eb4fcfb0 /docs
parent50df0390faedad489614c94bd00b1749d57dbbab (diff)
gRPC docs: include all needed paths
Signed-off-by: George Melikov <mail@gmelikov.ru>
Diffstat (limited to 'docs')
-rw-r--r--docs/sources/grpc-client.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/sources/grpc-client.md b/docs/sources/grpc-client.md
index efa117bf..b6b6ac84 100644
--- a/docs/sources/grpc-client.md
+++ b/docs/sources/grpc-client.md
@@ -19,7 +19,8 @@ We assumes that you have the relevant tools installed to generate the server and
You need to generate the server and client interface from GoBGP proto files at first.
```bash
-$ python -m grpc_tools.protoc -I./api --python_out=. --grpc_python_out=. api/gobgp.proto api/attribute.proto api/capability.proto
+$ python -m grpc_tools.protoc -I./api -I"$(GO111MODULE=on go list -f '{{ .Dir }}' -m github.com/golang/protobuf)"/ptypes --python_out=. --grpc_python_out=. api/gobgp.proto
+ api/attribute.proto api/capability.proto
```
### Adding Path