-def find_nbr(test, sw_if_index, ip_addr, is_static=0, inet=AF_INET, mac=None):
- nbrs = test.vapi.ip_neighbor_dump(sw_if_index,
- is_ipv6=1 if AF_INET6 == inet else 0)
- if inet == AF_INET:
- s = 4
+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
+ if 6 == ip_addr.version:
+ af = VppEnum.vl_api_address_family_t.ADDRESS_IP6