summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-08-01 10:49:59 +0200
committerChristian Poessinger <christian@poessinger.com>2020-08-01 10:51:06 +0200
commitdfbbdd2950c3db3f56649ff602a86b8bf17de748 (patch)
treef2eb25dbeb7168041be3d9f8b7a13949b2405b22
parent7e9266025d97bd51a6a413af8bd7f3f65ea9a65d (diff)
downloadvyos-1x-dfbbdd2950c3db3f56649ff602a86b8bf17de748.tar.gz
vyos-1x-dfbbdd2950c3db3f56649ff602a86b8bf17de748.zip
ifconfig: T2752: fix string format in verify_interface_exists()
We do not have a formatted string here thus the "f" keyword is wrong and triggered an exception.
-rw-r--r--python/vyos/configverify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py
index 8e06d16f2..bb590a514 100644
--- a/python/vyos/configverify.py
+++ b/python/vyos/configverify.py
@@ -69,7 +69,7 @@ def verify_interface_exists(config):
"""
from netifaces import interfaces
if not config['ifname'] in interfaces():
- raise ConfigError(f'Interface "{ifname}" does not exist!'
+ raise ConfigError('Interface "{ifname}" does not exist!'
.format(**config))
def verify_source_interface(config):