From: MathiasRaoul Date: Tue, 1 Sep 2020 14:30:02 +0000 (+0000) Subject: cnat: fix snat ip v6 tests X-Git-Tag: v21.01-rc0~21 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=5c721baeb192a20da1d9fb332366d5a5b460b644;p=vpp.git cnat: fix snat ip v6 tests Type: fix Change-Id: I9e102e0028274cc084e59c106d1cd4be174b1205 Signed-off-by: MathiasRaoul --- diff --git a/src/plugins/cnat/test/test_cnat.py b/src/plugins/cnat/test/test_cnat.py index 18e3baadbed..7a5dc7ff517 100644 --- a/src/plugins/cnat/test/test_cnat.py +++ b/src/plugins/cnat/test/test_cnat.py @@ -460,7 +460,7 @@ class TestCNatSourceNAT(VppTestCase): i.admin_down() super(TestCNatSourceNAT, self).tearDown() - def cnat_create_translation(self, srcNatAddr, interface, isV6=False): + def cnat_set_snat_address(self, srcNatAddr, interface, isV6=False): t1 = VppCNATSourceNat(self, srcNatAddr) t1.add_vpp_config() cnat_arc_name = "ip6-unicast" if isV6 else "ip4-unicast" @@ -487,7 +487,7 @@ class TestCNatSourceNAT(VppTestCase): self.pg1.configure_ipv6_neighbors() self.vapi.cli("test cnat scanner on") - t1 = self.cnat_create_translation(srcNatAddr, self.pg0) + t1 = self.cnat_set_snat_address(srcNatAddr, self.pg0, isV6) for nbr, remote_host in enumerate(self.pg1.remote_hosts): # from pods to outside network @@ -582,10 +582,10 @@ class TestCNatSourceNAT(VppTestCase): rx[ip_class].src, srcNatAddr) - # def test_cnat6_sourcenat(self): - # # """ CNat Source Nat ipv6 """ - # self.cnat_test_sourcenat(self.pg2.remote_hosts[0].ip6, TCP, True) - # self.cnat_test_sourcenat(self.pg2.remote_hosts[0].ip6, UDP, True) + def test_cnat6_sourcenat(self): + # """ CNat Source Nat ipv6 """ + self.cnat_test_sourcenat(self.pg2.remote_hosts[0].ip6, TCP, True) + self.cnat_test_sourcenat(self.pg2.remote_hosts[0].ip6, UDP, True) def test_cnat4_sourcenat(self): # """ CNat Source Nat ipv4 """