aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2017-12-08 03:38:51 -0800
committerOle Trøan <otroan@employees.org>2017-12-13 14:13:14 +0000
commit331acc632477ed2da1c9c0b90915a227b5e343d5 (patch)
tree2a27d80903f3fc01bdf71cc5f984bac6486fcfba /test
parent51e5edcbdd1eaea8f8f5566d35d6d865a6832594 (diff)
NAT: DS-Lite AFTR tunnel endpoint address respond to ICMPv6 echo request (VPP-1090)
Change-Id: I361c043979274eac1aefcd95abdf1624a3ef2756 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_nat.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_nat.py b/test/test_nat.py
index 0448faee0ec..e7723b1df0e 100644
--- a/test/test_nat.py
+++ b/test/test_nat.py
@@ -4678,6 +4678,20 @@ class TestDSlite(MethodHolder):
self.check_ip_checksum(capture)
self.check_icmp_checksum(capture)
+ # ping DS-Lite AFTR tunnel endpoint address
+ p = (Ether(dst=self.pg1.local_mac, src=self.pg1.remote_mac) /
+ IPv6(src=self.pg1.remote_hosts[1].ip6, dst=aftr_ip6) /
+ ICMPv6EchoRequest())
+ self.pg1.add_stream(p)
+ self.pg_enable_capture(self.pg_interfaces)
+ self.pg_start()
+ capture = self.pg1.get_capture(1)
+ self.assertEqual(1, len(capture))
+ capture = capture[0]
+ self.assertEqual(capture[IPv6].src, aftr_ip6)
+ self.assertEqual(capture[IPv6].dst, self.pg1.remote_hosts[1].ip6)
+ self.assertTrue(capture.haslayer(ICMPv6EchoReply))
+
def tearDown(self):
super(TestDSlite, self).tearDown()
if not self.vpp_dead: