summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorcatalyys <85279554+catalyys@users.noreply.github.com>2026-08-21 11:20:42 +0200
committerGitHub <noreply@github.com>2026-08-21 12:20:42 +0300
commit2dfb42aa6f213a353199c77792bbbb82d1e76f38 (patch)
treea9d5c0ecb0aacc4af4ba673126a657abb34bdb2a /plugins
parenta6adced609472d88cb525f2ef1a4054b52692f76 (diff)
downloadvyos.vyos-2dfb42aa6f213a353199c77792bbbb82d1e76f38.tar.gz
vyos.vyos-2dfb42aa6f213a353199c77792bbbb82d1e76f38.zip
T9180: added return and continue to the firewall rules default action (#494)
* T9180: added return to the firewall rules default action * T9180: added changelog fragment * T9180: added missing docs Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * T9180: added unit and integration tests * T9180: added YAML document marker --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: omnom62 <75066712+omnom62@users.noreply.github.com> Co-authored-by: Yuriy Andamasov <yuriy@vyos.io>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/module_utils/network/vyos/argspec/firewall_rules/firewall_rules.py2
-rw-r--r--plugins/modules/vyos_firewall_rules.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/module_utils/network/vyos/argspec/firewall_rules/firewall_rules.py b/plugins/module_utils/network/vyos/argspec/firewall_rules/firewall_rules.py
index d1cf4fe8..76faf1a4 100644
--- a/plugins/module_utils/network/vyos/argspec/firewall_rules/firewall_rules.py
+++ b/plugins/module_utils/network/vyos/argspec/firewall_rules/firewall_rules.py
@@ -56,6 +56,8 @@ class Firewall_rulesArgs(object): # pylint: disable=R0903
"reject",
"accept",
"jump",
+ "return",
+ "continue",
],
"type": "str",
},
diff --git a/plugins/modules/vyos_firewall_rules.py b/plugins/modules/vyos_firewall_rules.py
index 7213abd5..9045a5c6 100644
--- a/plugins/modules/vyos_firewall_rules.py
+++ b/plugins/modules/vyos_firewall_rules.py
@@ -90,8 +90,10 @@ options:
- reject (Drop and notify source if no prior rules are hit)
- accept (Accept if no prior rules are hit)
- jump (Jump to another rule-set, 1.4+)
+ - return (Return from the current chain and continue at the next rule of the last chain, 1.4+)
+ - continue (Continue parsing next rule, 1.4+)
type: str
- choices: ['drop', 'reject', 'accept', 'jump']
+ choices: ['drop', 'reject', 'accept', 'jump', 'return', 'continue']
default_jump_target:
description:
- Default jump target if the default action is jump.