summaryrefslogtreecommitdiff
path: root/python/vyos/configverify.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-14 14:05:24 +0100
committerGitHub <noreply@github.com>2024-02-14 14:05:24 +0100
commit6a108d67e76e3d61b2737fc4f2e220d51ec0702a (patch)
tree4ac129a77c8f9d4603c8d721793ab571dfafd11e /python/vyos/configverify.py
parent8cf33fa5a1fdb05e5892bc10aa664b08f0adfdc8 (diff)
parent399d3b7f786e3b9a7a9dd1ec4ffdc0d7cd246d7e (diff)
downloadvyos-1x-6a108d67e76e3d61b2737fc4f2e220d51ec0702a.tar.gz
vyos-1x-6a108d67e76e3d61b2737fc4f2e220d51ec0702a.zip
Merge pull request #3010 from c-po/t3992-equuleus
configverify: T3992: fix KeyError in verify_address()
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):
"""