summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-11-15 17:48:52 +0000
committerGitHub <noreply@github.com>2023-11-15 17:48:52 +0000
commit7b0eaba2d365e5bdf28d74e5b6cca629ff03c5da (patch)
treea78c9435367cbef901cf8c3413c0dc725714bc1b
parentf021386b8860a20fe774613a616799b059ab45d4 (diff)
parent67836889216e315a9da0487ea171c7470bc5db19 (diff)
downloadvyos-1x-7b0eaba2d365e5bdf28d74e5b6cca629ff03c5da.tar.gz
vyos-1x-7b0eaba2d365e5bdf28d74e5b6cca629ff03c5da.zip
Merge pull request #2487 from vyos/mergify/bp/sagitta/pr-2486
T5732: generate firewall rule-resequence drops geoip country-code fro… (backport #2486)
-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}'")