diff options
author | tamihiro <dead6oy@gmail.com> | 2016-03-17 18:22:17 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-15 10:21:54 +0900 |
commit | ea7180b18d174acc10144897db6c766206b9f65e (patch) | |
tree | a93124ee34ed16be23615d544eaa72acf7160d50 /tools/grpc/python | |
parent | a5cc2b139733f35aa9733b081e0c12e1bb3505d4 (diff) |
remove offending argument to avoid ValueError
Diffstat (limited to 'tools/grpc/python')
-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 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)) |