diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-11-02 04:55:48 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-11-02 04:56:18 +0100 |
commit | 3b5395580f4134a3295fbf8f8ebcc4b3caa38673 (patch) | |
tree | bae6d474874109aa17a8dd263ba21dca2520de82 /src/conf_mode | |
parent | c5aefce07b1f505a1796c440801459112ed734d1 (diff) | |
download | vyos-1x-3b5395580f4134a3295fbf8f8ebcc4b3caa38673.tar.gz vyos-1x-3b5395580f4134a3295fbf8f8ebcc4b3caa38673.zip |
bridge: T1783: bugfix removal of member interface
Fix error when deleting a member with:
delete interfaces bridge br0 member interface eth1
Traceback (most recent call last):
File "/usr/libexec/vyos/conf_mode/interfaces-bridge.py", line 304, in <module>
apply(c)
File "/usr/libexec/vyos/conf_mode/interfaces-bridge.py", line 267, in apply
br.del_port( intf['name'] )
TypeError: string indices must be integers
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/interfaces-bridge.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-bridge.py b/src/conf_mode/interfaces-bridge.py index 70bf4f528..d152384f7 100755 --- a/src/conf_mode/interfaces-bridge.py +++ b/src/conf_mode/interfaces-bridge.py @@ -264,7 +264,7 @@ def apply(bridge): # remove interface from bridge for intf in bridge['member_remove']: - br.del_port( intf['name'] ) + br.del_port(intf) # add interfaces to bridge for member in bridge['member']: |