aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_nat.py
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2018-04-24 05:23:56 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2018-04-24 18:30:48 +0000
commita15cd027498a2a23f1ec03579e734847f8ff98cc (patch)
treee0d282f5997db1b58ab6246b94df8c5363c75ebe /test/test_nat.py
parent97bacc6f002d9a0ddc82bb23c87e6e8975ac2140 (diff)
NAT44: one-armed NAT and identity mapping (VPP-1212)
Change-Id: I228728bacfca6056dc409a96de1bffb9cadcd3e6 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'test/test_nat.py')
-rw-r--r--test/test_nat.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_nat.py b/test/test_nat.py
index 47f3b8c7299..51a60d1b56f 100644
--- a/test/test_nat.py
+++ b/test/test_nat.py
@@ -3350,10 +3350,13 @@ class TestNAT44(MethodHolder):
self.vapi.nat44_forwarding_enable_disable(1)
self.nat44_add_address(self.nat_addr)
+ self.vapi.nat44_add_del_identity_mapping(ip=self.pg1.remote_ip4n)
self.nat44_add_static_mapping(self.pg0.remote_ip4, external_addr,
local_port, external_port,
proto=IP_PROTOS.tcp, out2in_only=1)
self.vapi.nat44_interface_add_del_feature(self.pg0.sw_if_index)
+ self.vapi.nat44_interface_add_del_feature(self.pg0.sw_if_index,
+ is_inside=0)
self.vapi.nat44_interface_add_del_output_feature(self.pg1.sw_if_index,
is_inside=0)