From ecfb617e99dc08d3312d5eef4839a073ce0ce9f0 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 22 Sep 2023 15:45:23 +0000 Subject: T5497: op-mode: Add generate firewall rule-resequence Add op-mode command `generate firewall rule-resequence` Generates output with new sequences for firewall rules set firewall ipv4 input filter rule 1 action 'accept' set firewall ipv4 input filter rule 1 description 'Allow loopback' $ generate firewall rule-resequence start 10 step 10 set firewall ipv4 input filter rule 10 action 'accept' set firewall ipv4 input filter rule 10 description 'Allow loopback' (cherry picked from commit 7ad1e8c7d3440046dce2ffa7bcb70a38bfddc298) --- .../generate_firewall_rule-resequence.xml.in | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 op-mode-definitions/generate_firewall_rule-resequence.xml.in (limited to 'op-mode-definitions') 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 @@ + + + + + + + Firewall + + + + + Resequence the firewall rules + + ${vyos_op_scripts_dir}/generate_firewall_rule-resequence.py + + + + Set the first sequence number + + 1-1000 + + + ${vyos_op_scripts_dir}/generate_firewall_rule-resequence.py --start $5 + + + + Step between rules + + 1-1000 + + + ${vyos_op_scripts_dir}/generate_firewall_rule-resequence.py --start $5 --step $7 + + + + + + + + + + -- cgit v1.2.3