summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorToshiki Tsuboi <t.tsubo2000@gmail.com>2015-09-23 08:47:58 +0900
committerToshiki Tsuboi <t.tsubo2000@gmail.com>2015-09-23 08:47:58 +0900
commit92bfac20656fc30fb767bfbabf333671aa7a77f8 (patch)
tree89ec205ad3849131de5818aeb90fbd912df812b5
parentc9262d33b3dccba3dba46063d0db206448f2feea (diff)
tools: change for renaming api-name of package/service to gobgpapi
Needs to change it because of renaming name from Grpc to GobgpApi.
-rw-r--r--docs/sources/grpc-client.md4
-rw-r--r--tools/grpc/python/get_neighbor.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/sources/grpc-client.md b/docs/sources/grpc-client.md
index b1ab1019..db4e6b8b 100644
--- a/docs/sources/grpc-client.md
+++ b/docs/sources/grpc-client.md
@@ -66,7 +66,7 @@ _TIMEOUT_SECONDS = 10
def run(gobgpd_addr, neighbor_addr):
- with gobgp_pb2.early_adopter_create_Grpc_stub(gobgpd_addr, 8080) as stub:
+ with gobgp_pb2.early_adopter_create_GobgpApi_stub(gobgpd_addr, 8080) as stub:
peer = stub.GetNeighbor(gobgp_pb2.Arguments(rf=4, name=neighbor_addr), _TIMEOUT_SECONDS)
print("BGP neighbor is %s, remote AS %d" % (peer.conf.remote_ip, peer.conf.remote_as))
print(" BGP version 4, remote router ID %s" % ( peer.conf.id))
@@ -82,7 +82,7 @@ if __name__ == '__main__':
run(gobgp, neighbor)
```
-We need to import gobgp_pb2 and call 'early_adopter_create_Grpc_stub' in your code.
+We need to import gobgp_pb2 and call 'early_adopter_create_GobgpApi_stub' in your code.
Let's run this script.
diff --git a/tools/grpc/python/get_neighbor.py b/tools/grpc/python/get_neighbor.py
index 6ce2aabe..590599d2 100644
--- a/tools/grpc/python/get_neighbor.py
+++ b/tools/grpc/python/get_neighbor.py
@@ -5,7 +5,7 @@ _TIMEOUT_SECONDS = 10
def run(gobgpd_addr, neighbor_addr):
- with gobgp_pb2.early_adopter_create_Grpc_stub(gobgpd_addr, 8080) as stub:
+ with gobgp_pb2.early_adopter_create_GobgpApi_stub(gobgpd_addr, 8080) as stub:
peer = stub.GetNeighbor(gobgp_pb2.Arguments(rf=4, name=neighbor_addr), _TIMEOUT_SECONDS)
print("BGP neighbor is %s, remote AS %d" % (peer.conf.remote_ip, peer.conf.remote_as))
print(" BGP version 4, remote router ID %s" % ( peer.conf.id))