From 142545b0535d0a994182389c99b7bcd6d7c37c24 Mon Sep 17 00:00:00 2001 From: khramshinr Date: Mon, 24 Jun 2024 19:56:21 +0600 Subject: T6313: Add "NAT" to "generate" command for rule resequence --- .../generate_firewall_rule-resequence.xml.in | 29 +-------------------- .../generate_nat64_rule-resequence.xml.in | 15 +++++++++++ .../generate_nat66_rule-resequence.xml.in | 15 +++++++++++ .../generate_nat_rule-resequence.xml.in | 15 +++++++++++ op-mode-definitions/include/rule-resequence.xml.i | 30 ++++++++++++++++++++++ 5 files changed, 76 insertions(+), 28 deletions(-) create mode 100644 op-mode-definitions/generate_nat64_rule-resequence.xml.in create mode 100644 op-mode-definitions/generate_nat66_rule-resequence.xml.in create mode 100644 op-mode-definitions/generate_nat_rule-resequence.xml.in create mode 100644 op-mode-definitions/include/rule-resequence.xml.i (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 index 66078deb9..ef81579fa 100644 --- a/op-mode-definitions/generate_firewall_rule-resequence.xml.in +++ b/op-mode-definitions/generate_firewall_rule-resequence.xml.in @@ -7,34 +7,7 @@ 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 - - - - - + #include diff --git a/op-mode-definitions/generate_nat64_rule-resequence.xml.in b/op-mode-definitions/generate_nat64_rule-resequence.xml.in new file mode 100644 index 000000000..399253b37 --- /dev/null +++ b/op-mode-definitions/generate_nat64_rule-resequence.xml.in @@ -0,0 +1,15 @@ + + + + + + + Network Address Translation (NAT64) + + + #include + + + + + diff --git a/op-mode-definitions/generate_nat66_rule-resequence.xml.in b/op-mode-definitions/generate_nat66_rule-resequence.xml.in new file mode 100644 index 000000000..d7159cf60 --- /dev/null +++ b/op-mode-definitions/generate_nat66_rule-resequence.xml.in @@ -0,0 +1,15 @@ + + + + + + + Network Prefix Translation (NAT66/NPTv6) + + + #include + + + + + diff --git a/op-mode-definitions/generate_nat_rule-resequence.xml.in b/op-mode-definitions/generate_nat_rule-resequence.xml.in new file mode 100644 index 000000000..e32a89e08 --- /dev/null +++ b/op-mode-definitions/generate_nat_rule-resequence.xml.in @@ -0,0 +1,15 @@ + + + + + + + Network Address Translation (NAT) + + + #include + + + + + 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 @@ + + + + Resequence rules + + ${vyos_op_scripts_dir}/generate_service_rule-resequence.py --service $2 + + + + Set the first sequence number + + 1-1000 + + + ${vyos_op_scripts_dir}/generate_service_rule-resequence.py --service $2 --start $5 + + + + Step between rules + + 1-1000 + + + ${vyos_op_scripts_dir}/generate_service_rule-resequence.py --service $2 --start $5 --step $7 + + + + + + -- cgit v1.2.3