Skip to content

Commit

Permalink
Merge pull request #1218 from sever-sever/T4237
Browse files Browse the repository at this point in the history
conntrack-sync: T4237: Fix checks for listen-address list to str
  • Loading branch information
c-po committed Feb 11, 2022
2 parents e19252a + c41c51e commit d8b60d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/conf_mode/conntrack_sync.py
Expand Up @@ -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:
Expand Down

0 comments on commit d8b60d5

Please sign in to comment.