luci-mod-network: only consider bridge vlans belonging to the current device
In case multiple bridges with bridge vlans are declared, LuCI did not correctly filter the VLANs to show only the ones belonging to the bridge being configured currently. Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit f6f1eacb012b0364940c1dc9b9392fc0e60405b9)
This commit is contained in:
parent
83f6606a6d
commit
8b663587f9
@ -968,6 +968,9 @@ return baseclass.extend({
|
||||
});
|
||||
|
||||
uci.sections('network', 'bridge-vlan', function(bvs) {
|
||||
if (uci.get('network', s.section, 'name') != bvs.device)
|
||||
return;
|
||||
|
||||
L.toArray(bvs.ports).forEach(function(portspec) {
|
||||
var m = portspec.match(/^([^:]+)(?::[ut*]+)?$/);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user