summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2019-11-07 15:05:00 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-11-07 15:05:00 +0900
commit79a9e200966271975cb5bc90325c0d8d7b6aa40d (patch)
treeaedeffe908aa44b43582a099b2bbd2921d5086ea /docs
parent72a0e55287bd2ebffe2a1e6d4a0f24fe304b21ee (diff)
docs: update python grpc code generation
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/sources/grpc-client.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/sources/grpc-client.md b/docs/sources/grpc-client.md
index b6b6ac84..b5d6d1a8 100644
--- a/docs/sources/grpc-client.md
+++ b/docs/sources/grpc-client.md
@@ -19,8 +19,9 @@ 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 -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
+$ python -m grpc_tools.protoc -I./ --python_out=. --grpc_python_out=. *.proto
+$ ls *.py
+attribute_pb2.py attribute_pb2_grpc.py capability_pb2.py capability_pb2_grpc.py gobgp_pb2.py gobgp_pb2_grpc.py
```
### Adding Path