summaryrefslogtreecommitdiff
path: root/src/conf_mode/dhcp_server.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-07-18 23:55:37 +0200
committerDaniil Baturin <daniil@baturin.org>2019-07-19 00:04:09 +0200
commit90e4b213c409fc01392219d65daad2280a2ba587 (patch)
treea3c8bf2c628ca3225d18628677a64b44900aaafc /src/conf_mode/dhcp_server.py
parent8714e321c321dc8bcbaa407729c2e2cbabb7003a (diff)
downloadvyos-1x-90e4b213c409fc01392219d65daad2280a2ba587.tar.gz
vyos-1x-90e4b213c409fc01392219d65daad2280a2ba587.zip
T1440: in IPv4 DHCP, print the subnet rather than a dict dump
when a non-unique subnet is found.
Diffstat (limited to 'src/conf_mode/dhcp_server.py')
-rwxr-xr-xsrc/conf_mode/dhcp_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py
index ba0749b97..89618f31d 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -752,7 +752,7 @@ def verify(dhcp):
# Subnets must be non overlapping
if subnet['network'] in subnets:
- raise ConfigError('DHCP subnets must be unique! Subnet {0} defined multiple times!'.format(subnet))
+ raise ConfigError('DHCP subnets must be unique! Subnet {0} defined multiple times!'.format(subnet['network']))
else:
subnets.append(subnet['network'])