mirror of https://github.com/openwrt/luci.git
luci-app-lldpd: retain empty settings for advertisements flags
Signed-off-by: Paul Donald <newtwen+github@gmail.com>pull/7080/head
parent
f5f2323e80
commit
f79634dc3e
|
@ -152,6 +152,7 @@ return L.view.extend({
|
||||||
|
|
||||||
o = s.taboption(tab, form.Flag, 'lldp_capability_advertisements', _('System capability advertisements'));
|
o = s.taboption(tab, form.Flag, 'lldp_capability_advertisements', _('System capability advertisements'));
|
||||||
o.default = '1'; //lldpd internal default
|
o.default = '1'; //lldpd internal default
|
||||||
|
o.rmempty = false;
|
||||||
|
|
||||||
// Capabilities override
|
// Capabilities override
|
||||||
o = s.taboption(tab, form.MultiValue, 'lldp_syscapabilities',
|
o = s.taboption(tab, form.MultiValue, 'lldp_syscapabilities',
|
||||||
|
@ -176,6 +177,7 @@ return L.view.extend({
|
||||||
|
|
||||||
o = s.taboption(tab, form.Flag, 'lldp_mgmt_addr_advertisements', _('System management IO advertisements'));
|
o = s.taboption(tab, form.Flag, 'lldp_mgmt_addr_advertisements', _('System management IO advertisements'));
|
||||||
o.default = '1'; //lldpd internal default
|
o.default = '1'; //lldpd internal default
|
||||||
|
o.rmempty = false;
|
||||||
|
|
||||||
// Management addresses of this system
|
// Management addresses of this system
|
||||||
// This value: lldpd.init handles as a single value, and needs a CSV for lldpd.conf: 'configure system ip management pattern'
|
// This value: lldpd.init handles as a single value, and needs a CSV for lldpd.conf: 'configure system ip management pattern'
|
||||||
|
|
Loading…
Reference in New Issue