summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-10-20 17:49:15 +0000
committerChristian Poessinger <christian@poessinger.com>2021-10-20 20:32:28 +0200
commit2ffd79535058f39e033871f187f3b69186aa6c0d (patch)
tree121f87b666f84bd6aa46c4cdd4da22602434632c /src
parent4d99d91829fa06a3a56299c6ec6936a5c8efc796 (diff)
downloadvyos-1x-2ffd79535058f39e033871f187f3b69186aa6c0d.tar.gz
vyos-1x-2ffd79535058f39e033871f187f3b69186aa6c0d.zip
dhcpv6-server: T3918: Fix subnets verify raise ConfigError
(cherry picked from commit ead10909ba9104733930bb3f59c90610138bd047)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/dhcpv6_server.py2
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