summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_nat.py
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-03-14 22:22:25 +0200
committerGitHub <noreply@github.com>2023-03-14 22:22:25 +0200
commit7f0eb0b029c927e4b7b0003c934f682be9b36380 (patch)
treeeecad127b99f640b5e2dd512e1ad51ac15d21c10 /smoketest/scripts/cli/test_nat.py
parentc5ee06af8cb0b4485d08a2cf1d1e338c74b3fd85 (diff)
parent80bdd7f93430769ea5cda32d1925dfcd43df5107 (diff)
downloadvyos-1x-7f0eb0b029c927e4b7b0003c934f682be9b36380.tar.gz
vyos-1x-7f0eb0b029c927e4b7b0003c934f682be9b36380.zip
Merge pull request #1890 from nicolas-fort/T5055
T5055: NAT: extend packet-type to NAT
Diffstat (limited to 'smoketest/scripts/cli/test_nat.py')
-rwxr-xr-xsmoketest/scripts/cli/test_nat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_nat.py b/smoketest/scripts/cli/test_nat.py
index 9f4e3b831..1f2b777a8 100755
--- a/smoketest/scripts/cli/test_nat.py
+++ b/smoketest/scripts/cli/test_nat.py
@@ -194,12 +194,13 @@ class TestNAT(VyOSUnitTestSHIM.TestCase):
self.cli_set(dst_path + ['rule', '1', 'inbound-interface', 'eth1'])
self.cli_set(dst_path + ['rule', '1', 'destination', 'port', '443'])
self.cli_set(dst_path + ['rule', '1', 'protocol', 'tcp'])
+ self.cli_set(dst_path + ['rule', '1', 'packet-type', 'host'])
self.cli_set(dst_path + ['rule', '1', 'translation', 'port', '443'])
self.cli_commit()
nftables_search = [
- ['iifname "eth1"', 'tcp dport 443', 'dnat to :443']
+ ['iifname "eth1"', 'tcp dport 443', 'pkttype host', 'dnat to :443']
]
self.verify_nftables(nftables_search, 'ip vyos_nat')