diff options
Diffstat (limited to 'tools/grpc/python/get_neighbor.py')
-rw-r--r-- | tools/grpc/python/get_neighbor.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |