summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_nat.py
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2023-09-13 10:36:59 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2023-09-13 10:36:59 +0000
commitec5437913e489f40fea6bab89a6bb5f565cd1ab7 (patch)
tree43c49aa75531882e7d5deb581c2d5088dbc9c4b9 /smoketest/scripts/cli/test_nat.py
parentcd3dda75534abf2453c5dcd47969f4119a0e0dae (diff)
downloadvyos-1x-ec5437913e489f40fea6bab89a6bb5f565cd1ab7.tar.gz
vyos-1x-ec5437913e489f40fea6bab89a6bb5f565cd1ab7.zip
T5561: nat: defining inbound|outbound interface should not be mandatory while configuring dNAT|sNAT rule
Diffstat (limited to 'smoketest/scripts/cli/test_nat.py')
-rwxr-xr-xsmoketest/scripts/cli/test_nat.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/smoketest/scripts/cli/test_nat.py b/smoketest/scripts/cli/test_nat.py
index 31dfcef87..703e5ab28 100755
--- a/smoketest/scripts/cli/test_nat.py
+++ b/smoketest/scripts/cli/test_nat.py
@@ -155,11 +155,6 @@ class TestNAT(VyOSUnitTestSHIM.TestCase):
rule = '5'
self.cli_set(src_path + ['rule', rule, 'source', 'address', '192.0.2.0/24'])
- # check validate() - outbound-interface must be defined
- with self.assertRaises(ConfigSessionError):
- self.cli_commit()
- self.cli_set(src_path + ['rule', rule, 'outbound-interface', 'eth0'])
-
# check validate() - translation address not specified
with self.assertRaises(ConfigSessionError):
self.cli_commit()