diff options
author | Christian Breunig <christian@breunig.cc> | 2023-05-27 11:33:37 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-05-27 11:33:37 +0200 |
commit | f427201f56f84792d403baa49932645621457d31 (patch) | |
tree | 8b6df4cfa2ad2d4ca0fd570c47c685d8ec7d1295 /src/conf_mode/interfaces-bridge.py | |
parent | a8c0a7e25bfff9f05b90c51d6ff6463325098487 (diff) | |
parent | ec8ffd2c967d178c913be645c896434aa3212c9c (diff) | |
download | vyos-1x-f427201f56f84792d403baa49932645621457d31.tar.gz vyos-1x-f427201f56f84792d403baa49932645621457d31.zip |
Merge branch 't5242-smoketest-dynamic' into current
* t5242-smoketest-dynamic:
smoketest: T5242: automatically detect interface "capabilities"
geneve: T2630: change lower limit MTU to 1200 bytes
gitignore: T5242: add XML dict cache file
bridge: T4579: fix error message for bridge and bond membership
T5242: example use of cli_defined
xml: T5242: add cli_defined boolean test for node existing under path
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: |