bridge: only overwrite implicit vlan assignment if vlans are configured
authorFelix Fietkau <nbd@nbd.name>
Thu, 5 Nov 2020 11:00:12 +0000 (12:00 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 5 Nov 2020 11:03:49 +0000 (12:03 +0100)
commited11f0c0ffe4fdacfe3f8223049ef8a61d9c53e9
tree1b072c4f5eb31e63e442670acff913629e5859ab
parent3a2b21001c3c93dbe8502a8df465e415f18a84b1
bridge: only overwrite implicit vlan assignment if vlans are configured

When VLAN filtering is enabled, but no vlans are defined, the implicit
VLANs should stay, so that forwarding between ports still works.
This is useful for setups where VLANs are assigned by external scripts
instead of being configured via netifd

Signed-off-by: Felix Fietkau <nbd@nbd.name>
bridge.c
config.c