summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-10-05 20:34:43 +0200
committerChristian Breunig <christian@breunig.cc>2024-10-05 20:34:43 +0200
commit490ee3ec5ba7ea28002890841eab8e46f775a129 (patch)
tree0d3a4043ff74aee7aed57d8d32a172f3b24cd746
parent5a59d8529c56f844c6dc62ffa6377280f01bcec1 (diff)
downloadvyos-1x-490ee3ec5ba7ea28002890841eab8e46f775a129.tar.gz
vyos-1x-490ee3ec5ba7ea28002890841eab8e46f775a129.zip
static: T4283: fix missing f'ormat string
This fixes the error message: Can not use both blackhole and reject for prefix "{prefix}"! Added in commit bb78f3a9ad28 ("static: T4283: support "reject" routes - emit an ICMP unreachable when matched")
-rwxr-xr-xsrc/conf_mode/protocols_static.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_static.py b/src/conf_mode/protocols_static.py
index a2373218a..430cc69d4 100755
--- a/src/conf_mode/protocols_static.py
+++ b/src/conf_mode/protocols_static.py
@@ -88,7 +88,7 @@ def verify(static):
if {'blackhole', 'reject'} <= set(prefix_options):
raise ConfigError(f'Can not use both blackhole and reject for '\
- 'prefix "{prefix}"!')
+ f'prefix "{prefix}"!')
return None