summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-26 22:10:05 +0200
committerChristian Breunig <christian@breunig.cc>2023-05-26 22:10:05 +0200
commit105224d67c36ef43ee83635b8108faa9a142745c (patch)
tree9ea377abadcfef67ce23e00c0f19be2b0dd60896
parent93d2e99c74af391fe5dcad8be7cf023ffaf06428 (diff)
downloadvyos-1x-105224d67c36ef43ee83635b8108faa9a142745c.tar.gz
vyos-1x-105224d67c36ef43ee83635b8108faa9a142745c.zip
bridge: T4579: fix error message for bridge and bond membership
-rwxr-xr-xsrc/conf_mode/interfaces-bridge.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-bridge.py b/src/conf_mode/interfaces-bridge.py
index b961408db..4da3b097f 100755
--- a/src/conf_mode/interfaces-bridge.py
+++ b/src/conf_mode/interfaces-bridge.py
@@ -131,11 +131,11 @@ def verify(bridge):
raise ConfigError('Loopback interface "lo" can not be added to a bridge')
if 'is_bridge_member' in interface_config:
- tmp = interface_config['is_bridge_member']
+ tmp = next(iter(interface_config['is_bridge_member']))
raise ConfigError(error_msg + f'it is already a member of bridge "{tmp}"!')
if 'is_bond_member' in interface_config:
- tmp = interface_config['is_bond_member']
+ tmp = next(iter(interface_config['is_bond_member']))
raise ConfigError(error_msg + f'it is already a member of bond "{tmp}"!')
if 'is_source_interface' in interface_config: