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>
This commit is contained in:
parent
6e0af93204
commit
f6f1eacb01
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue