summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-11 18:45:44 +0100
committerGitHub <noreply@github.com>2022-02-11 18:45:44 +0100
commitd8b60d58ac8f9910976c1a56c2d18fdcbe73f81f (patch)
tree2cc5bc27616ad8f752cb9f00471816b845196e10
parente19252a7968c6281878707c2d95a98fa56e68a74 (diff)
parentc41c51e4ed7ceb293161014a73bdd350162c3300 (diff)
downloadvyos-1x-d8b60d58ac8f9910976c1a56c2d18fdcbe73f81f.tar.gz
vyos-1x-d8b60d58ac8f9910976c1a56c2d18fdcbe73f81f.zip
Merge pull request #1218 from sever-sever/T4237
conntrack-sync: T4237: Fix checks for listen-address list to str
-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 7f22fa2dd..d4bf14d52 100755
--- a/src/conf_mode/conntrack_sync.py
+++ b/src/conf_mode/conntrack_sync.py
@@ -82,9 +82,9 @@ def verify(conntrack):
raise ConfigError('Cannot configure all with other protocol')
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: