diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-26 21:35:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 21:35:28 +0300 |
commit | 13e9c9e8532025819c23e45e0921fa93faef0060 (patch) | |
tree | 6955ed4abe6fa10b99ce84d4b0ea89d253f9ab46 /op-mode-definitions | |
parent | 90ce099f065325841c4c18b4a4beadaf141a35b2 (diff) | |
parent | ecfb617e99dc08d3312d5eef4839a073ce0ce9f0 (diff) | |
download | vyos-1x-13e9c9e8532025819c23e45e0921fa93faef0060.tar.gz vyos-1x-13e9c9e8532025819c23e45e0921fa93faef0060.zip |
Merge pull request #2309 from vyos/mergify/bp/sagitta/pr-2302
T5497: op-mode: Add generate firewall rule-resequence (backport #2302)
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/generate_firewall_rule-resequence.xml.in | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/op-mode-definitions/generate_firewall_rule-resequence.xml.in b/op-mode-definitions/generate_firewall_rule-resequence.xml.in new file mode 100644 index 000000000..66078deb9 --- /dev/null +++ b/op-mode-definitions/generate_firewall_rule-resequence.xml.in @@ -0,0 +1,42 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="generate"> + <children> + <node name="firewall"> + <properties> + <help>Firewall</help> + </properties> + <children> + <node name="rule-resequence"> + <properties> + <help>Resequence the firewall rules</help> + </properties> + <command>${vyos_op_scripts_dir}/generate_firewall_rule-resequence.py</command> + <children> + <tagNode name="start"> + <properties> + <help>Set the first sequence number</help> + <completionHelp> + <list>1-1000</list> + </completionHelp> + </properties> + <command>${vyos_op_scripts_dir}/generate_firewall_rule-resequence.py --start $5</command> + <children> + <tagNode name="step"> + <properties> + <help>Step between rules</help> + <completionHelp> + <list>1-1000</list> + </completionHelp> + </properties> + <command>${vyos_op_scripts_dir}/generate_firewall_rule-resequence.py --start $5 --step $7</command> + </tagNode> + </children> + </tagNode> + </children> + </node> + </children> + </node> + </children> + </node> +</interfaceDefinition> |