-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VLAN filtering checkbox does not reflect config file setting: vlan_filtering='1' shows checkbox empty. #7278
Comments
Does the change reflect in your underlying config? |
Yes, it does, as stated under Actual Behavior: Device br-lan will now have option vlan_filtering '1' |
The config... file. Check what it says in |
Sorry for - apparently - not being clear enough. Yes, the configuration file actually changes, but the checkbox doesn't reflect this change. So to make it very clear, before the change the
Then after checking the checkbox enable vlan filtering in Luci and clicking save and save & apply, the
But the enable vlan filtering configuration option in Luci still shows an unchecked box. |
Then I imagine if you add some VLANs to that config, the setting makes sense. The code for this has: o.updateDefaultValue = function(section_id) {
var device = uci.get('network', s.section, 'name'),
uielem = this.getUIElement(section_id),
has_vlans = false;
uci.sections('network', 'bridge-vlan', function(bvs) {
has_vlans = has_vlans || (bvs.device == device);
});
this.default = has_vlans ? this.enabled : this.disabled;
if (uielem && !uielem.isChanged())
uielem.setValue(this.default);
}; Try also adding a VLAN. What happens? |
Yep, it switches on. Doesn't it do anything, besides setting a configuration option? |
Steps to reproduce:
br-lan
Note that the UNSAVED CHANGES field now has 1 change:
uci set network.cfg030f15.vlan_filtering='1'
. So click Save & Apply in order to apply the setting.Actual behavior:
br-lan
will now haveoption vlan_filtering '1'
,br-lan
again, note that Enable VLAN filtering is off, i.e. not checked.Expected behavior:
The Luci UI shows that Enable VLAN filtering is on, i.e. checked if
vlan_filtering
is1
.Additional Information:
The text was updated successfully, but these errors were encountered: