summaryrefslogtreecommitdiff
path: root/op-mode-definitions/include/rule-resequence.xml.i
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-06-27 15:42:22 +0200
committerGitHub <noreply@github.com>2024-06-27 15:42:22 +0200
commit7d91768a746a000bf26d737eb1612536d0454ad1 (patch)
tree164dfd7adc8d1b7a9ad4b7e28c70068d90997684 /op-mode-definitions/include/rule-resequence.xml.i
parentda1515c704e5170cdec420bbd7ce0e4cdb4da868 (diff)
parent142545b0535d0a994182389c99b7bcd6d7c37c24 (diff)
downloadvyos-1x-7d91768a746a000bf26d737eb1612536d0454ad1.tar.gz
vyos-1x-7d91768a746a000bf26d737eb1612536d0454ad1.zip
Merge pull request #3715 from HollyGurza/T6313
T6313: Add "NAT" to "generate" command for rule resequence
Diffstat (limited to 'op-mode-definitions/include/rule-resequence.xml.i')
-rw-r--r--op-mode-definitions/include/rule-resequence.xml.i30
1 files changed, 30 insertions, 0 deletions
diff --git a/op-mode-definitions/include/rule-resequence.xml.i b/op-mode-definitions/include/rule-resequence.xml.i
new file mode 100644
index 000000000..987bf634e
--- /dev/null
+++ b/op-mode-definitions/include/rule-resequence.xml.i
@@ -0,0 +1,30 @@
+<!-- included start from show-nht.xml.i -->
+<node name="rule-resequence">
+ <properties>
+ <help>Resequence rules</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/generate_service_rule-resequence.py --service $2</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_service_rule-resequence.py --service $2 --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_service_rule-resequence.py --service $2 --start $5 --step $7</command>
+ </tagNode>
+ </children>
+ </tagNode>
+ </children>
+</node>
+<!-- included end -->