From c0e0aafa749f893d7b4f75a8dd7b93fea8153cdc Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Tue, 22 Dec 2015 15:25:08 +0900 Subject: gobgpd/gobgp: change grcp port to 50051 from 8080 also add an option to change grpc port Signed-off-by: ISHIDA Wataru --- tools/grpc/python/get_neighbor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/grpc/python') diff --git a/tools/grpc/python/get_neighbor.py b/tools/grpc/python/get_neighbor.py index 867f1124..f49a61bf 100644 --- a/tools/grpc/python/get_neighbor.py +++ b/tools/grpc/python/get_neighbor.py @@ -7,7 +7,7 @@ _TIMEOUT_SECONDS = 10 def run(gobgpd_addr, neighbor_addr): - channel = implementations.insecure_channel(gobgpd_addr, 8080) + channel = implementations.insecure_channel(gobgpd_addr, 50051) with gobgp_pb2.beta_create_GobgpApi_stub(channel) 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.neighbor_address, peer.conf.peer_as)) -- cgit v1.2.3