Skip to content

Commit f79634d

Browse files
committed
luci-app-lldpd: retain empty settings for advertisements flags
Signed-off-by: Paul Donald <[email protected]>
1 parent f5f2323 commit f79634d

File tree

1 file changed

+2
-0
lines changed
  • applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd

1 file changed

+2
-0
lines changed

applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ return L.view.extend({
152152

153153
o = s.taboption(tab, form.Flag, 'lldp_capability_advertisements', _('System capability advertisements'));
154154
o.default = '1'; //lldpd internal default
155+
o.rmempty = false;
155156

156157
// Capabilities override
157158
o = s.taboption(tab, form.MultiValue, 'lldp_syscapabilities',
@@ -176,6 +177,7 @@ return L.view.extend({
176177

177178
o = s.taboption(tab, form.Flag, 'lldp_mgmt_addr_advertisements', _('System management IO advertisements'));
178179
o.default = '1'; //lldpd internal default
180+
o.rmempty = false;
179181

180182
// Management addresses of this system
181183
// This value: lldpd.init handles as a single value, and needs a CSV for lldpd.conf: 'configure system ip management pattern'

0 commit comments

Comments
 (0)