diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-23 20:25:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-23 20:25:24 +0300 |
commit | 734392fdff1276110d81c2315e6a4a29a1316f7d (patch) | |
tree | 21cb02faec5fb690b28ee28d232a99a9da007061 /op-mode-definitions | |
parent | 7253377e754ed8bc95cbe59840ed3a70c6945b93 (diff) | |
parent | 7ad1e8c7d3440046dce2ffa7bcb70a38bfddc298 (diff) | |
download | vyos-1x-734392fdff1276110d81c2315e6a4a29a1316f7d.tar.gz vyos-1x-734392fdff1276110d81c2315e6a4a29a1316f7d.zip |
Merge pull request #2302 from sever-sever/T5497
T5497: op-mode: Add generate firewall rule-resequence
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> |