summaryrefslogtreecommitdiff
path: root/op-mode-definitions/include
diff options
context:
space:
mode:
authorfett0 <50275740+fett0@users.noreply.github.com>2024-07-31 16:58:18 -0300
committerGitHub <noreply@github.com>2024-07-31 16:58:18 -0300
commit7ab67d1be17e74f61effbdec167fa5e0d755b845 (patch)
tree367feb8b2a71e08c1100c33f5e27ebafa80aaab1 /op-mode-definitions/include
parent9bc2680e12ac117b19c51881ae78bd2386fbba88 (diff)
parentb04cabbaf15dd06b233c0f8c9f2f09cd6857f4dc (diff)
downloadvyos-1x-7ab67d1be17e74f61effbdec167fa5e0d755b845.tar.gz
vyos-1x-7ab67d1be17e74f61effbdec167fa5e0d755b845.zip
Merge pull request #3907 from vyos/mergify/bp/sagitta/pr-3715
T6313: Add "NAT" to "generate" command for rule resequence (backport #3715)
Diffstat (limited to 'op-mode-definitions/include')
-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 -->