summaryrefslogtreecommitdiff
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:56 +0100
commit86104f7c5aa18b00989c7bd008217af5097b1920 (patch)
tree035077e42bf3f92be5e67093f7385a66c708e767
parentce803b1b5659c5d5e331f8a47a43e6d64a0b0058 (diff)
downloadvyos-1x-86104f7c5aa18b00989c7bd008217af5097b1920.tar.gz
vyos-1x-86104f7c5aa18b00989c7bd008217af5097b1920.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. (cherry picked from commit 9b7f11bd469d788292d0c5461adabdd5a3fed87b)
-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 51cb7df3d..26c25333e 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -794,9 +794,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