[FS#4104] netifd: new bridge vlan ports are not applied correctly, if bridge was empty before

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Fri Oct 22 08:34:20 PDT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Fabian Bläse (fblaese) 

Attached to Project - OpenWrt/LEDE Project
Summary - netifd: new bridge vlan ports are not applied correctly, if bridge was empty before
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - If a bridge is created without any members, and vlan members are added later on, a reload of netifd does not properly create the bridge. A second reload of netifd is required for the bridge to appear.

The following network configuration can be used to reproduce the issue:

config device 'switch0'
	option name 'switch0'
	option type 'bridge'

config bridge-vlan 'switch0_4'
	option device 'switch0'
	option vlan '4'

config bridge-vlan 'switch0_5'
	option device 'switch0'
	option vlan '5'


Restart netifd. Add ports to bridge-vlans:

uci set network.switch0_4.ports='eth0:t eth1:* eth2:* eth4:*'
uci set network.switch0_5.ports='eth0:* eth2:t'


Reload netifd. The bridge configuration seems to be applied correctly, but the bridge is not created. A second reload of netifd is required. Starting the bridge manually (ifup switch0) also works.

Adding additional ports to an already existing and started bridge works as expected. Therefore, the bridge option option bridge_empty '1' can be used to work around this problem.

Restarting netifd instead of reloading also works as expected.

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=4104

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list