diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/configverify.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py index 3aece499e..6566e8863 100644 --- a/python/vyos/configverify.py +++ b/python/vyos/configverify.py @@ -196,9 +196,10 @@ def verify_bridge_delete(config): when interface also is part of a bridge. """ if 'is_bridge_member' in config: - raise ConfigError( - 'Interface "{ifname}" cannot be deleted as it is a ' - 'member of bridge "{is_bridge_member}"!'.format(**config)) + interface = config['ifname'] + for bridge in config['is_bridge_member']: + raise ConfigError(f'Interface "{interface}" cannot be deleted as it ' + f'is a member of bridge "{bridge}"!') def verify_interface_exists(ifname): """ |