summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-11-02 04:55:48 +0100
committerChristian Poessinger <christian@poessinger.com>2019-11-02 04:56:18 +0100
commit3b5395580f4134a3295fbf8f8ebcc4b3caa38673 (patch)
treebae6d474874109aa17a8dd263ba21dca2520de82
parentc5aefce07b1f505a1796c440801459112ed734d1 (diff)
downloadvyos-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
-rwxr-xr-xsrc/conf_mode/interfaces-bridge.py2
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']: