summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorzdc <zdc@users.noreply.github.com>2019-11-28 09:17:14 +0200
committerChristian Poessinger <christian@poessinger.com>2019-11-28 08:17:14 +0100
commit9b7f11bd469d788292d0c5461adabdd5a3fed87b (patch)
treee4604b1d9e283377d84a7e2bae6cb18de96d58b6 /src/conf_mode
parent679b23dcc20e1244eb06bb3c91b42fd7bf217fc0 (diff)
downloadvyos-1x-9b7f11bd469d788292d0c5461adabdd5a3fed87b.tar.gz
vyos-1x-9b7f11bd469d788292d0c5461adabdd5a3fed87b.zip
dhcp-serverr: T1825: replaced DHCP configuration error message
Previous one DHCP configuration error message does not point that DHCP server work only with primary IP address on interface.
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dhcp_server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py
index af803a696..c2a188812 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -793,9 +793,9 @@ def verify(dhcp):
raise ConfigError('DHCP conflicting subnet ranges: {0} overlaps {1}'.format(net, net2))
if not listen_ok:
- raise ConfigError('None of the DHCP lease subnets are inside any configured subnet on\n' \
- 'broadcast interfaces. At least one lease subnet must be set such that\n' \
- 'DHCP server listens on a one broadcast interface!')
+ raise ConfigError('DHCP server configuration error!\n' \
+ 'None of configured DHCP subnets does not have appropriate\n' \
+ 'primary IP address on any broadcast interface.')
return None