From 7aa188ccc51acf4e86aa3b41cde26a0a8d938510 Mon Sep 17 00:00:00 2001 From: khramshinr Date: Thu, 28 Mar 2024 17:14:59 +0800 Subject: dhcp-server: T4718: Listen-address is not commit if the ip address is on the interface with vrf --- src/conf_mode/service_dhcp-server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/conf_mode/service_dhcp-server.py b/src/conf_mode/service_dhcp-server.py index 90056887a..e910ecdf7 100755 --- a/src/conf_mode/service_dhcp-server.py +++ b/src/conf_mode/service_dhcp-server.py @@ -280,14 +280,13 @@ def verify(dhcp): raise ConfigError(f'DHCP failover requires "{tmp}" to be specified!') for address in (dict_search('listen_address', dhcp) or []): - if is_addr_assigned(address): + if is_addr_assigned(address, include_vrf=True): listen_ok = True # no need to probe further networks, we have one that is valid continue else: raise ConfigError(f'listen-address "{address}" not configured on any interface') - if not listen_ok: raise ConfigError('None of the configured subnets have an appropriate primary IP address on any\n' 'broadcast interface configured, nor was there an explicit listen-address\n' -- cgit v1.2.3