aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_nat44_ed.py
diff options
context:
space:
mode:
authorFilip Varga <fivarga@cisco.com>2021-06-29 14:28:21 +0200
committerOle Tr�an <otroan@employees.org>2021-07-14 12:46:42 +0000
commit63e15818bbf05e5bb5ecde5af0e9eec7b1084fec (patch)
tree05d0533db426b2dc780a9a41fef6602e73725ed8 /test/test_nat44_ed.py
parenta32416ded5aef52015155ce405708d98838be6b1 (diff)
nat: refactoring NAT44ED cfg functions
Refactored & fixed NAT44ED configuration functions used for handling interfaces and nodes. Type: refactor Signed-off-by: Filip Varga <fivarga@cisco.com> Change-Id: I6fbbb7f0fe35d572675997745d53290152987424
Diffstat (limited to 'test/test_nat44_ed.py')
-rw-r--r--test/test_nat44_ed.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/test/test_nat44_ed.py b/test/test_nat44_ed.py
index 9eea7c820ae..76561eabedd 100644
--- a/test/test_nat44_ed.py
+++ b/test/test_nat44_ed.py
@@ -3033,11 +3033,7 @@ class TestNAT44EDMW(TestNAT44ED):
self.nat_add_address(self.nat_addr)
self.vapi.nat44_interface_add_del_output_feature(
- sw_if_index=self.pg0.sw_if_index,
- flags=self.config_flags.NAT_IS_INSIDE, is_add=1)
- self.vapi.nat44_interface_add_del_output_feature(
- sw_if_index=self.pg1.sw_if_index,
- flags=self.config_flags.NAT_IS_OUTSIDE, is_add=1)
+ sw_if_index=self.pg1.sw_if_index, is_add=1)
# First ensure that the NAT is working sans ACL
@@ -3582,13 +3578,8 @@ class TestNAT44EDMW(TestNAT44ED):
new_vrf_id = 22
self.nat_add_address(self.nat_addr)
- flags = self.config_flags.NAT_IS_INSIDE
- self.vapi.nat44_interface_add_del_output_feature(
- sw_if_index=self.pg7.sw_if_index,
- flags=flags, is_add=1)
self.vapi.nat44_interface_add_del_output_feature(
- sw_if_index=self.pg8.sw_if_index,
- is_add=1)
+ sw_if_index=self.pg8.sw_if_index, is_add=1)
try:
self.configure_ip4_interface(self.pg7, table_id=new_vrf_id)