summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorzhaoqingling <zhao.qingling@zte.com.cn>2017-12-23 15:20:59 +0800
committerNeale Ranns <nranns@cisco.com>2018-01-07 19:39:49 +0000
commit37aa1ffae6e5cc05f6e0c4e9c3da758bb864c9be (patch)
tree60b25d6d0c3dc5ff5cdd67596260cd50d013bd27 /test
parent848b47c70ecfb0bb45636c5c806391848e2878f9 (diff)
VPP-1110 BVI reply ARP that doesn't request BVI loacl IP.
Change-Id: I66ae618edaa12c2b4e4afe276da689673b02c9cd Signed-off-by: zhaoqingling <zhao.qingling@zte.com.cn> (cherry picked from commit b4c42cdc6bbbf464f3f0034b2b39d4e20fd23a25)
Diffstat (limited to 'test')
-rw-r--r--test/test_neighbor.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/test_neighbor.py b/test/test_neighbor.py
index 68dde2fb840..565a8b4442d 100644
--- a/test/test_neighbor.py
+++ b/test/test_neighbor.py
@@ -641,7 +641,6 @@ class ARPTestCase(VppTestCase):
#
# 4 - don't respond to ARP requests that has mac source different
# from ARP request HW source
- # the router
#
p = (Ether(dst="ff:ff:ff:ff:ff:ff", src=self.pg0.remote_mac) /
ARP(op="who-has",
@@ -652,6 +651,19 @@ class ARPTestCase(VppTestCase):
"ARP req for non-local source")
#
+ # 5 - don't respond to ARP requests for address within the
+ # interface's sub-net but not the interface's address
+ #
+ self.pg0.generate_remote_hosts(2)
+ p = (Ether(dst="ff:ff:ff:ff:ff:ff", src=self.pg0.remote_mac) /
+ ARP(op="who-has",
+ hwsrc=self.pg0.remote_mac,
+ psrc=self.pg0.remote_hosts[0].ip4,
+ pdst=self.pg0.remote_hosts[1].ip4))
+ self.send_and_assert_no_replies(self.pg0, p,
+ "ARP req for non-local destination")
+
+ #
# cleanup
#
dyn_arp.remove_vpp_config()