diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-03-14 18:07:39 +0000 |
---|---|---|
committer | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-03-14 18:24:02 +0000 |
commit | 80bdd7f93430769ea5cda32d1925dfcd43df5107 (patch) | |
tree | 195655cf7176f3fc512094564afdbcd7851ed06e /smoketest/scripts/cli/test_nat.py | |
parent | 16c494c2f1364283988b52e35faf6b01745bbed4 (diff) | |
download | vyos-1x-80bdd7f93430769ea5cda32d1925dfcd43df5107.tar.gz vyos-1x-80bdd7f93430769ea5cda32d1925dfcd43df5107.zip |
T5055: NAT: extend packet-type match option which was previously introduced in firewall, to NAT
Diffstat (limited to 'smoketest/scripts/cli/test_nat.py')
-rwxr-xr-x | smoketest/scripts/cli/test_nat.py | 3 |
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') |