From 86e00e535c7b933f9fc9b1d84c90f4ec0f3763d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Fri, 22 Oct 2021 18:08:35 +0200 Subject: [PATCH] fff-network: Add temporary workaround for dsa bridge configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the bridge created for DSA devices is configured without any members, a single netifd reload is currently not sufficient to correctly apply network settings. This is due to a bug in netifd (FS#4104). Temporarily add a simple workaround by always configuring the bridge, even if it does not have any member ports. Signed-off-by: Fabian Bläse --- src/packages/fff/fff-network/files/usr/sbin/configurenetwork | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/packages/fff/fff-network/files/usr/sbin/configurenetwork b/src/packages/fff/fff-network/files/usr/sbin/configurenetwork index 56d377ae..c9ab7b87 100755 --- a/src/packages/fff/fff-network/files/usr/sbin/configurenetwork +++ b/src/packages/fff/fff-network/files/usr/sbin/configurenetwork @@ -117,6 +117,8 @@ else uci set network.$SWITCHDEV=device uci set network.$SWITCHDEV.name=$SWITCHDEV uci set network.$SWITCHDEV.type=bridge + # temporary workaround for netifd bug present in OpenWrt 21.02.0 (FS#4104) + uci set network.$SWITCHDEV.bridge_empty='1' uci set network.${SWITCHDEV}_1=bridge-vlan uci set network.${SWITCHDEV}_1.device=$SWITCHDEV