From fb1d3181fe112574800aa586a2d1ae732370ee77 Mon Sep 17 00:00:00 2001 From: Maximilian Wilhelm Date: Sun, 18 Oct 2020 21:28:10 +0200 Subject: [PATCH] bridge: STP option for iproute2 has to be 0 or 1. Signed-off-by: Maximilian Wilhelm --- executor-scripts/linux/bridge | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor-scripts/linux/bridge b/executor-scripts/linux/bridge index 07b1943..ca845a3 100755 --- a/executor-scripts/linux/bridge +++ b/executor-scripts/linux/bridge @@ -113,7 +113,7 @@ set_bridge_opts_iproute2() { [ -n "$IF_BRIDGE_PORTPRIO" ] \ && bridge link set dev $IFACE priority $IF_BRIDGE_PORTPRIO [ -n "$IF_BRIDGE_STP" ] \ - && ip link set dev $IFACE type bridge stp $IF_BRIDGE_STP + && ip link set dev $IFACE type bridge stp $(yesno $IF_BRIDGE_STP) [ -n "$IF_BRIDGE_VLAN_AWARE" ] \ && ip link set dev $IFACE type bridge vlan_filtering $(yesno $IF_BRIDGE_VLAN_AWARE) }