Skip to content

Commit

Permalink
luci-mod-network: don't trigger uci save on removing bridge vlans
Browse files Browse the repository at this point in the history
Do not trigger a uci save operation on removing bridge VLANs as that might
invalidate the ephemeral section ID of a just added network device.

Fixes: #6990
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  • Loading branch information
jow- committed Mar 15, 2024
1 parent 850345b commit 61cef9b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,15 @@ return baseclass.extend({
}, this));
};

ss.handleRemove = function(section_id) {
this.map.data.remove('network', section_id);
s.map.addedVLANs = s.map.addedVLANs.filter(function(sid) {
return sid != section_id;
});

return this.redraw();
};

o = ss.option(form.Value, 'vlan', _('VLAN ID'));
o.datatype = 'range(1, 4094)';

Expand Down

0 comments on commit 61cef9b

Please sign in to comment.