From dfbbdd2950c3db3f56649ff602a86b8bf17de748 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 1 Aug 2020 10:49:59 +0200 Subject: 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. --- python/vyos/configverify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3