diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-07-18 23:55:37 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2019-07-18 23:55:37 +0200 |
commit | fdcce3a65e556eed1ced4156d71bbc32b3c87d5a (patch) | |
tree | ad777a92ec4669d734abca498ff179ec78e60029 /src | |
parent | f62f31fb14aeaff70edb53d0be2d501916e8e39c (diff) | |
download | vyos-1x-fdcce3a65e556eed1ced4156d71bbc32b3c87d5a.tar.gz vyos-1x-fdcce3a65e556eed1ced4156d71bbc32b3c87d5a.zip |
T1440: in IPv4 DHCP, print the subnet rather than a dict dump
when a non-unique subnet is found.
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/dhcp_server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py index 6d88ea95a..3e1381cd0 100755 --- a/src/conf_mode/dhcp_server.py +++ b/src/conf_mode/dhcp_server.py @@ -753,7 +753,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']) |