diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-10-20 20:32:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-20 20:32:01 +0200 |
commit | 41f286ac9169ac6061652888d06284a75db9e83a (patch) | |
tree | eb64a42cbaf22cd7a571c8d27dae2aae55ec3aae /src/conf_mode | |
parent | f681e566775a708273b1ef0d5a7dc22978028d94 (diff) | |
parent | ead10909ba9104733930bb3f59c90610138bd047 (diff) | |
download | vyos-1x-41f286ac9169ac6061652888d06284a75db9e83a.tar.gz vyos-1x-41f286ac9169ac6061652888d06284a75db9e83a.zip |
Merge pull request #1034 from sever-sever/T3918
dhcpv6-server: T3918: Fix subnets verify raise ConfigError
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/dhcpv6_server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dhcpv6_server.py b/src/conf_mode/dhcpv6_server.py index 175300bb0..e6a2e4486 100755 --- a/src/conf_mode/dhcpv6_server.py +++ b/src/conf_mode/dhcpv6_server.py @@ -128,7 +128,7 @@ def verify(dhcpv6): # Subnets must be unique if subnet in subnets: - raise ConfigError('DHCPv6 subnets must be unique! Subnet {0} defined multiple times!'.format(subnet['network'])) + raise ConfigError(f'DHCPv6 subnets must be unique! Subnet {subnet} defined multiple times!') subnets.append(subnet) # DHCPv6 requires at least one configured address range or one static mapping |