From 63e15818bbf05e5bb5ecde5af0e9eec7b1084fec Mon Sep 17 00:00:00 2001 From: Filip Varga Date: Tue, 29 Jun 2021 14:28:21 +0200 Subject: nat: refactoring NAT44ED cfg functions Refactored & fixed NAT44ED configuration functions used for handling interfaces and nodes. Type: refactor Signed-off-by: Filip Varga Change-Id: I6fbbb7f0fe35d572675997745d53290152987424 --- test/test_nat44_ed.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'test') 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) -- cgit 1.2.3-korg