summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMathiasRaoul <mathias.raoul@gmail.com>2020-09-01 14:30:02 +0000
committerBenoƮt Ganne <bganne@cisco.com>2020-09-04 16:57:22 +0000
commit5c721baeb192a20da1d9fb332366d5a5b460b644 (patch)
tree8ad98bafa012e97dfd44259d84836fc6806e4ece /src
parenta7a2281732b926df139b0fd946a084299d813654 (diff)
cnat: fix snat ip v6 tests
Type: fix Change-Id: I9e102e0028274cc084e59c106d1cd4be174b1205 Signed-off-by: MathiasRaoul <mathias.raoul@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/cnat/test/test_cnat.py12
1 files changed, 6 insertions, 6 deletions
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 """