summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeffWDH <JeffWDH@users.noreply.github.com>2023-09-29 08:32:51 -0400
committerGitHub <noreply@github.com>2023-09-29 08:32:51 -0400
commitf39a35338ac967381356f8b9b499ec1d730653fc (patch)
treee478ce3b7374dcdd0d2d57d484ff34a8167d43fb /src
parent5180622cd6c928812a644f427d65acae763c37cc (diff)
downloadvyos-1x-f39a35338ac967381356f8b9b499ec1d730653fc.tar.gz
vyos-1x-f39a35338ac967381356f8b9b499ec1d730653fc.zip
T5497: Add ability to resequence rule numbers for firewall
Updated spacing.
Diffstat (limited to 'src')
-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