From ea7180b18d174acc10144897db6c766206b9f65e Mon Sep 17 00:00:00 2001 From: tamihiro Date: Thu, 17 Mar 2016 18:22:17 +0900 Subject: remove offending argument to avoid ValueError --- tools/grpc/python/get_neighbor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/grpc') diff --git a/tools/grpc/python/get_neighbor.py b/tools/grpc/python/get_neighbor.py index f49a61bf..90458968 100644 --- a/tools/grpc/python/get_neighbor.py +++ b/tools/grpc/python/get_neighbor.py @@ -9,7 +9,7 @@ _TIMEOUT_SECONDS = 10 def run(gobgpd_addr, neighbor_addr): 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) + peer = stub.GetNeighbor(gobgp_pb2.Arguments(name=neighbor_addr), _TIMEOUT_SECONDS) print("BGP neighbor is %s, remote AS %d" % (peer.conf.neighbor_address, peer.conf.peer_as)) print(" BGP version 4, remote router ID %s" % (peer.conf.id)) print(" BGP state = %s, up for %s" % (peer.info.bgp_state, peer.timers.state.uptime)) -- cgit v1.2.3