luci-proto-qmi: add missing proto default options
This change add the following missing default options. - defaulroute - peerdns - metric Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
1c482dde3d
commit
fa702c0387
1 changed files with 17 additions and 0 deletions
|
@ -103,5 +103,22 @@ return network.registerProtocol('qmi', {
|
|||
o.value('ipv4', 'IPv4');
|
||||
o.value('ipv6', 'IPv6');
|
||||
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;
|
||||
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue