Type: fix
Change-Id: I9e102e0028274cc084e59c106d1cd4be174b1205
Signed-off-by: MathiasRaoul <mathias.raoul@gmail.com>
i.admin_down()
super(TestCNatSourceNAT, self).tearDown()
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"
t1 = VppCNATSourceNat(self, srcNatAddr)
t1.add_vpp_config()
cnat_arc_name = "ip6-unicast" if isV6 else "ip4-unicast"
self.pg1.configure_ipv6_neighbors()
self.vapi.cli("test cnat scanner on")
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
for nbr, remote_host in enumerate(self.pg1.remote_hosts):
# from pods to outside network
rx[ip_class].src,
srcNatAddr)
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 """
def test_cnat4_sourcenat(self):
# """ CNat Source Nat ipv4 """