X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fvpp_neighbor.py;h=6172d8f871df0d93656cdc848981194492dc568f;hb=cbe25aab3be72154f2c706c39eeba6a77f34450f;hp=f906c2a5af35c1e582a136a42fa1fcc1e305164a;hpb=96453fd2417ebd1d69354a7fb692976129cea80e;p=vpp.git diff --git a/test/vpp_neighbor.py b/test/vpp_neighbor.py index f906c2a5af3..6172d8f871d 100644 --- a/test/vpp_neighbor.py +++ b/test/vpp_neighbor.py @@ -16,8 +16,11 @@ except NameError: def find_nbr(test, sw_if_index, nbr_addr, is_static=0, mac=None): ip_addr = ip_address(text_type(nbr_addr)) e = VppEnum.vl_api_ip_neighbor_flags_t - nbrs = test.vapi.ip_neighbor_dump(sw_if_index, - is_ipv6=(6 == ip_addr.version)) + if 6 == ip_addr.version: + af = VppEnum.vl_api_address_family_t.ADDRESS_IP6 + else: + af = VppEnum.vl_api_address_family_t.ADDRESS_IP4 + nbrs = test.vapi.ip_neighbor_dump(sw_if_index=sw_if_index, af=af) for n in nbrs: if ip_addr == n.neighbor.ip_address and \