diff options
author | Christian Breunig <christian@breunig.cc> | 2023-05-26 22:10:05 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-05-26 22:10:05 +0200 |
commit | 105224d67c36ef43ee83635b8108faa9a142745c (patch) | |
tree | 9ea377abadcfef67ce23e00c0f19be2b0dd60896 /src/conf_mode/interfaces-bridge.py | |
parent | 93d2e99c74af391fe5dcad8be7cf023ffaf06428 (diff) | |
download | vyos-1x-105224d67c36ef43ee83635b8108faa9a142745c.tar.gz vyos-1x-105224d67c36ef43ee83635b8108faa9a142745c.zip |
bridge: T4579: fix error message for bridge and bond membership
Diffstat (limited to 'src/conf_mode/interfaces-bridge.py')
-rwxr-xr-x | src/conf_mode/interfaces-bridge.py | 4 |
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: |