diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-06-19 15:44:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-19 15:44:46 +0100 |
| commit | 79dec52ed4c3a6c035204fad28b9229f709c87c4 (patch) | |
| tree | e1e2391390674c1b679c476488d17c9a0b48fc5b /src/tests | |
| parent | 1c72ef9a39245b76bd79b8c7d46e806f84a148c9 (diff) | |
| parent | 8dbc3c5e67cc1fd043a78dd3446a1a733ebd814f (diff) | |
| download | vyos-1x-79dec52ed4c3a6c035204fad28b9229f709c87c4.tar.gz vyos-1x-79dec52ed4c3a6c035204fad28b9229f709c87c4.zip | |
Merge pull request #4558 from natali-rs1985/T6951
firewall: T6951: Add a configuration command for ethertypes that bridge firewalls should always accept
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/test_template.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/test_template.py b/src/tests/test_template.py index 4660c0038..09315d398 100644 --- a/src/tests/test_template.py +++ b/src/tests/test_template.py @@ -199,8 +199,12 @@ class TestVyOSTemplate(TestCase): vyos.template.get_default_config_file('UNKNOWN') with self.assertRaises(RuntimeError): vyos.template.get_default_port('UNKNOWN') + with self.assertRaises(RuntimeError): + vyos.template.nft_accept_invalid('UNKNOWN') self.assertEqual(vyos.template.get_default_config_file('sshd_user_ca'), config_files['sshd_user_ca']) self.assertEqual(vyos.template.get_default_port('certbot_haproxy'), internal_ports['certbot_haproxy']) + self.assertEqual(vyos.template.nft_accept_invalid('arp'), + 'ct state invalid ether type arp counter accept') |
