summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorkhramshinr <khramshinr@gmail.com>2024-03-28 17:14:59 +0800
committerkhramshinr <khramshinr@gmail.com>2024-03-28 17:14:59 +0800
commit7aa188ccc51acf4e86aa3b41cde26a0a8d938510 (patch)
tree6fd05cc4a1229a91438681b60b2b5f282d4eee37 /src/conf_mode
parent25891616fd74013241dc755166c7e3ad732849cc (diff)
downloadvyos-1x-7aa188ccc51acf4e86aa3b41cde26a0a8d938510.tar.gz
vyos-1x-7aa188ccc51acf4e86aa3b41cde26a0a8d938510.zip
dhcp-server: T4718: Listen-address is not commit if the ip address is on the interface with vrf
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/service_dhcp-server.py3
1 files changed, 1 insertions, 2 deletions
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'