Merge pull request #4579 from TDT-AG/pr/20201106-luci-proto-qmi

luci-proto-qmi: add missing proto default options
This commit is contained in:
Florian Eckert 2020-11-18 08:48:59 +01:00 committed by GitHub
commit ceae469a19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,5 +103,22 @@ return network.registerProtocol('qmi', {
o.value('ipv4', 'IPv4'); o.value('ipv4', 'IPv4');
o.value('ipv6', 'IPv6'); o.value('ipv6', 'IPv6');
o.default = 'ipv4v6'; o.default = 'ipv4v6';
o = s.taboption('advanced', form.Flag, 'defaultroute',
_('Use default gateway'),
_('If unchecked, no default route is configured'));
o.default = o.enabled;
o = s.taboption('advanced', form.Value, 'metric',
_('Use gateway metric'));
o.placeholder = '0';
o.datatype = 'uinteger';
o.depends('defaultroute', '1');
o = s.taboption('advanced', form.Flag, 'peerdns',
_('Use DNS servers advertised by peer'),
_('If unchecked, the advertised DNS server addresses are ignored'));
o.default = o.enabled;
} }
}); });