summaryrefslogtreecommitdiff
path: root/src/op_mode/generate_firewall_rule-resequence.py
diff options
context:
space:
mode:
authorJeffWDH <JeffWDH@users.noreply.github.com>2023-09-29 08:32:51 -0400
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-10-25 09:07:49 +0000
commit438eb7ad6a9edcf2ced3ac08595dace20d861909 (patch)
tree68be644346e400fcb26ab399614ac5c4f5f9524d /src/op_mode/generate_firewall_rule-resequence.py
parent47d9109d0d49c897e2aaf66c107c0b1f9febc86d (diff)
downloadvyos-1x-438eb7ad6a9edcf2ced3ac08595dace20d861909.tar.gz
vyos-1x-438eb7ad6a9edcf2ced3ac08595dace20d861909.zip
T5497: Add ability to resequence rule numbers for firewall
Updated spacing. (cherry picked from commit f39a35338ac967381356f8b9b499ec1d730653fc)
Diffstat (limited to 'src/op_mode/generate_firewall_rule-resequence.py')
-rwxr-xr-xsrc/op_mode/generate_firewall_rule-resequence.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/op_mode/generate_firewall_rule-resequence.py b/src/op_mode/generate_firewall_rule-resequence.py
index 4362b484a..eb82a1a0a 100755
--- a/src/op_mode/generate_firewall_rule-resequence.py
+++ b/src/op_mode/generate_firewall_rule-resequence.py
@@ -120,13 +120,13 @@ if __name__ == "__main__":
# Remove global-options, group and flowtable as they don't need sequencing
if 'global-options' in config_dict['firewall']:
- del config_dict['firewall']['global-options']
+ del config_dict['firewall']['global-options']
if 'group' in config_dict['firewall']:
- del config_dict['firewall']['group']
+ del config_dict['firewall']['group']
if 'flowtable' in config_dict['firewall']:
- del config_dict['firewall']['flowtable']
+ del config_dict['firewall']['flowtable']
# Convert rule keys to integers, rule "10" -> rule 10
# This is necessary for sorting the rules