diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-03-18 17:27:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 17:27:31 +0100 |
commit | 4cde2bda732b133d0ea46cecd94f57c3b1eeab05 (patch) | |
tree | 270ee49c890cd4e77689a8e315358aca83903f0f /modules/luci-base | |
parent | 1dc16d9d3ffeee30d072c569e9a3c693d303e9fc (diff) | |
parent | bbf1a5343f1d930096cd5ff6b98f3e1f2f0d3c9a (diff) |
Merge pull request #4307 from jow-/uci-network-device-support
Introduce support for managing `config device` and `config bridge-vlan` sections
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js | 15 | ||||
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/protocol/static.js | 30 |
2 files changed, 0 insertions, 45 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js index bacbf559f9..9a63a107cf 100644 --- a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js +++ b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js @@ -34,21 +34,6 @@ return network.registerProtocol('dhcp', { o = s.taboption('advanced', form.Flag, 'broadcast', _('Use broadcast flag'), _('Required for certain ISPs, e.g. Charter with DOCSIS 3')); o.default = o.disabled; - 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.Flag, 'peerdns', _('Use DNS servers advertised by peer'), _('If unchecked, the advertised DNS server addresses are ignored')); - o.default = o.enabled; - - o = s.taboption('advanced', form.DynamicList, 'dns', _('Use custom DNS servers')); - o.depends('peerdns', '0'); - o.datatype = 'ipaddr'; - o.cast = 'string'; - - o = s.taboption('advanced', form.Value, 'metric', _('Use gateway metric')); - o.placeholder = '0'; - o.datatype = 'uinteger'; - o = s.taboption('advanced', form.Value, 'clientid', _('Client ID to send when requesting DHCP')); o.datatype = 'hexstring'; diff --git a/modules/luci-base/htdocs/luci-static/resources/protocol/static.js b/modules/luci-base/htdocs/luci-static/resources/protocol/static.js index 2d70ae681f..82f499d6b9 100644 --- a/modules/luci-base/htdocs/luci-static/resources/protocol/static.js +++ b/modules/luci-base/htdocs/luci-static/resources/protocol/static.js @@ -179,28 +179,6 @@ return network.registerProtocol('static', { s.taboption('general', this.CBINetmaskValue, 'netmask', _('IPv4 netmask')); s.taboption('general', this.CBIGatewayValue, 'gateway', _('IPv4 gateway')); s.taboption('general', this.CBIBroadcastValue, 'broadcast', _('IPv4 broadcast')); - s.taboption('general', form.DynamicList, 'dns', _('Use custom DNS servers')); - - o = s.taboption('general', form.Value, 'ip6assign', _('IPv6 assignment length'), _('Assign a part of given length of every public IPv6-prefix to this interface')); - o.value('', _('disabled')); - o.value('64'); - o.datatype = 'max(64)'; - - o = s.taboption('general', form.Value, 'ip6hint', _('IPv6 assignment hint'), _('Assign prefix parts using this hexadecimal subprefix ID for this interface.')); - o.placeholder = '0'; - o.validate = function(section_id, value) { - if (value == null || value == '') - return true; - - var n = parseInt(value, 16); - - if (!/^(0x)?[0-9a-fA-F]+$/.test(value) || isNaN(n) || n >= 0xffffffff) - return _('Expecting a hexadecimal assignment hint'); - - return true; - }; - for (var i = 33; i <= 64; i++) - o.depends('ip6assign', String(i)); o = s.taboption('general', form.DynamicList, 'ip6addr', _('IPv6 address')); o.datatype = 'ip6addr'; @@ -215,10 +193,6 @@ return network.registerProtocol('static', { o.datatype = 'ip6addr'; o.depends('ip6assign', ''); - o = s.taboption('general', form.Value, 'ip6ifaceid', _('IPv6 suffix'), _("Optional. Allowed values: 'eui64', 'random', fixed value like '::1' or '::1:2'. When IPv6 prefix (like 'a:b:c:d::') is received from a delegating server, use the suffix (like '::1') to form the IPv6 address ('a:b:c:d::1') for the interface.")); - o.datatype = 'ip6hostid'; - o.placeholder = '::1'; - o = s.taboption('advanced', form.Value, 'macaddr', _('Override MAC address')); o.datatype = 'macaddr'; o.placeholder = dev ? (dev.getMAC() || '') : ''; @@ -226,9 +200,5 @@ return network.registerProtocol('static', { o = s.taboption('advanced', form.Value, 'mtu', _('Override MTU')); o.datatype = 'max(9200)'; o.placeholder = dev ? (dev.getMTU() || '1500') : '1500'; - - o = s.taboption('advanced', form.Value, 'metric', _('Use gateway metric')); - o.placeholder = this.getMetric() || '0'; - o.datatype = 'uinteger'; } }); |