summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-15 17:02:47 +0100
committerGitHub <noreply@github.com>2022-02-15 17:02:47 +0100
commit0f788abea73fa1e6ea5a41ef3c23ee29182a942a (patch)
treea064b903e274b201a83aaa58ca7f8077793fa4f9 /src
parentaef699acf11e75313d455ca6389e4cc717a1d5db (diff)
parent283688fe52bd762d1fadff635de58a87df3da629 (diff)
downloadvyos-1x-0f788abea73fa1e6ea5a41ef3c23ee29182a942a.tar.gz
vyos-1x-0f788abea73fa1e6ea5a41ef3c23ee29182a942a.zip
Merge pull request #1223 from sever-sever/T4237-cur
conntrack-sync: T4237: Fix checks for listen-address list to str
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/conntrack_sync.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/conntrack_sync.py b/src/conf_mode/conntrack_sync.py
index 8f9837c2b..34d1f7398 100755
--- a/src/conf_mode/conntrack_sync.py
+++ b/src/conf_mode/conntrack_sync.py
@@ -93,9 +93,9 @@ def verify(conntrack):
raise ConfigError('Can not configure expect-sync "all" with other protocols!')
if 'listen_address' in conntrack:
- address = conntrack['listen_address']
- if not is_addr_assigned(address):
- raise ConfigError(f'Specified listen-address {address} not assigned to any interface!')
+ for address in conntrack['listen_address']:
+ if not is_addr_assigned(address):
+ raise ConfigError(f'Specified listen-address {address} not assigned to any interface!')
vrrp_group = dict_search('failover_mechanism.vrrp.sync_group', conntrack)
if vrrp_group == None: