summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-11-15 17:32:53 +0200
committerGitHub <noreply@github.com>2023-11-15 17:32:53 +0200
commit0cc409787389abda7bab36932e13683cedb3223c (patch)
tree2a9e3db61b392bb12e58b5728a0871ac8e29d0d1 /src/op_mode
parent1afaa42ee7c849ec7080ab6ff6d092bede343d26 (diff)
parentaa7a5131a5d1bd901ffdc7670a62bad8218147ab (diff)
downloadvyos-1x-0cc409787389abda7bab36932e13683cedb3223c.tar.gz
vyos-1x-0cc409787389abda7bab36932e13683cedb3223c.zip
Merge pull request #2486 from JeffWDH/current
T5732: generate firewall rule-resequence drops geoip country-code fro…
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/generate_firewall_rule-resequence.py4
1 files changed, 4 insertions, 0 deletions
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}'")