summaryrefslogtreecommitdiff
path: root/python/vyos/configverify.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos/configverify.py')
-rw-r--r--python/vyos/configverify.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py
index 6afb1c596..a2ddf01dd 100644
--- a/python/vyos/configverify.py
+++ b/python/vyos/configverify.py
@@ -203,10 +203,9 @@ def verify_address(config):
of a bridge or bond.
"""
if {'is_bridge_member', 'address'} <= set(config):
- interface = config['ifname']
bridge_name = next(iter(config['is_bridge_member']))
- raise ConfigError(f'Cannot assign address to interface "{interface}" '
- f'as it is a member of bridge "{bridge_name}"!')
+ raise ConfigError(f'Cannot assign address to interface which '
+ f'is a member of bridge "{bridge_name}"!')
def verify_bridge_delete(config):
"""