From 90e4b213c409fc01392219d65daad2280a2ba587 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 18 Jul 2019 23:55:37 +0200 Subject: T1440: in IPv4 DHCP, print the subnet rather than a dict dump when a non-unique subnet is found. --- src/conf_mode/dhcp_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) -- cgit v1.2.3