X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fvpp_neighbor.py;fp=test%2Fvpp_neighbor.py;h=6f5426180fb00968851e082d4b754b25fb71911f;hb=22eefd79a1817ce6d0da3b20412eb61ce718cbaf;hp=ffe87d93b586655ae8f6cf851767f43a01feba65;hpb=47a3d9975fa3af7a7537b565d6511dadc0df61fb;p=vpp.git diff --git a/test/vpp_neighbor.py b/test/vpp_neighbor.py index ffe87d93b58..6f5426180fb 100644 --- a/test/vpp_neighbor.py +++ b/test/vpp_neighbor.py @@ -20,7 +20,8 @@ def find_nbr(test, sw_if_index, nbr_addr, is_static=0, mac=None): af=ip_addr.vapi_af) for n in nbrs: - if ip_addr == n.neighbor.ip_address and \ + if sw_if_index == n.neighbor.sw_if_index and \ + ip_addr == n.neighbor.ip_address and \ is_static == (n.neighbor.flags & e.IP_API_NEIGHBOR_FLAG_STATIC): if mac: if mac == str(n.neighbor.mac_address):