diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-11-06 13:36:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-06 13:36:37 +0200 |
| commit | 6140414b4556e28297d5732cef768944427b1fca (patch) | |
| tree | dbe2853de6db3a82ac84d4589da61b88f67b6c48 /smoketest/scripts/cli | |
| parent | a5654ac187681f802a356090390d4b66355ee8a3 (diff) | |
| parent | 909780c13714bcba488467165494af84bc7262cf (diff) | |
| download | vyos-1x-6140414b4556e28297d5732cef768944427b1fca.tar.gz vyos-1x-6140414b4556e28297d5732cef768944427b1fca.zip | |
Merge pull request #4834 from alexandr-san4ez/T7112-current
firewall: T7112: Default action drop fails
Diffstat (limited to 'smoketest/scripts/cli')
| -rwxr-xr-x | smoketest/scripts/cli/test_firewall.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_firewall.py b/smoketest/scripts/cli/test_firewall.py index bc9900557..c29471b63 100755 --- a/smoketest/scripts/cli/test_firewall.py +++ b/smoketest/scripts/cli/test_firewall.py @@ -1086,6 +1086,15 @@ class TestFirewall(VyOSUnitTestSHIM.TestCase): self.verify_nftables(nftables_search, 'ip vyos_filter') self.verify_nftables(nftables_search_v6, 'ip6 vyos_filter') + def test_zone_without_member(self): + self.cli_set(['firewall', 'zone', 'wan', 'default-action', 'drop']) + error_message = 'Zone "wan" has no interfaces and is not the local zone' + with self.assertRaisesRegex(ConfigSessionError, error_message): + self.cli_commit() + + self.cli_set(['firewall', 'zone', 'wan', 'member', 'interface', 'eth1']) + self.cli_commit() + def test_wildcard_interfaces(self): wc_interfaces = [ 'eth0', |
