summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-03-23 14:23:12 +0000
committerGitHub <noreply@github.com>2023-03-23 14:23:12 +0000
commit05ecf032c61953f71c208c184fb77480323bf2a6 (patch)
tree40d2569e201b97b2993e4810b5f835bfd0db5e76 /src
parent5dcaa00e5f782d80ee941ca948d71e6ad788f6d8 (diff)
parentc367a5f426665e5ade1a77fed6630317e1c58dea (diff)
downloadvyos-1x-05ecf032c61953f71c208c184fb77480323bf2a6.tar.gz
vyos-1x-05ecf032c61953f71c208c184fb77480323bf2a6.zip
Merge pull request #1907 from c-po/t5105-backport
T5105: dhcp-server: Fix error message from dhcp-server (backport)
Diffstat (limited to 'src')
-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 11ee6b60a..ff0f5ecc5 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -247,7 +247,7 @@ def verify(dhcp):
net2 = ip_network(n)
if (net != net2):
if net.overlaps(net2):
- raise ConfigError('Conflicting subnet ranges: "{net}" overlaps "{net2}"!')
+ raise ConfigError(f'Conflicting subnet ranges: "{net}" overlaps "{net2}"!')
# Prevent 'disable' for shared-network if only one network is configured
if (shared_networks - disabled_shared_networks) < 1: