From aa7a5131a5d1bd901ffdc7670a62bad8218147ab Mon Sep 17 00:00:00 2001 From: JeffWDH Date: Wed, 15 Nov 2023 07:28:06 -0500 Subject: T5732: generate firewall rule-resequence drops geoip country-code from output --- src/op_mode/generate_firewall_rule-resequence.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/op_mode/generate_firewall_rule-resequence.py') diff --git a/src/op_mode/generate_firewall_rule-resequence.py b/src/op_mode/generate_firewall_rule-resequence.py index eb82a1a0a..21441f689 100755 --- a/src/op_mode/generate_firewall_rule-resequence.py +++ b/src/op_mode/generate_firewall_rule-resequence.py @@ -41,6 +41,10 @@ def convert_to_set_commands(config_dict, parent_key=''): commands.extend( convert_to_set_commands(value, f"{current_key} ")) + elif isinstance(value, list): + for item in value: + commands.append(f"set {current_key} '{item}'") + elif isinstance(value, str): commands.append(f"set {current_key} '{value}'") -- cgit v1.2.3