From 3b5395580f4134a3295fbf8f8ebcc4b3caa38673 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 2 Nov 2019 04:55:48 +0100 Subject: 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 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 --- src/conf_mode/interfaces-bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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']: -- cgit v1.2.3