diff options
Diffstat (limited to 'protocols/luci-proto-hnet/htdocs/luci-static')
-rw-r--r-- | protocols/luci-proto-hnet/htdocs/luci-static/resources/protocol/hnet.js | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/protocols/luci-proto-hnet/htdocs/luci-static/resources/protocol/hnet.js b/protocols/luci-proto-hnet/htdocs/luci-static/resources/protocol/hnet.js index 84396ede08..5762ab7bf2 100644 --- a/protocols/luci-proto-hnet/htdocs/luci-static/resources/protocol/hnet.js +++ b/protocols/luci-proto-hnet/htdocs/luci-static/resources/protocol/hnet.js @@ -12,7 +12,7 @@ return network.registerProtocol('hnet', { }, renderFormOptions: function(s) { - var dev = this.getL2Device() || this.getDevice(), o; + var o; o = s.taboption('general', form.ListValue, 'mode', _('Category')); o.value('auto', _('Automatic')); @@ -24,10 +24,6 @@ return network.registerProtocol('hnet', { o.value('hybrid', _('Hybrid')); o.default = 'auto'; - o = s.taboption('advanced', form.Value, 'ip6assign', _('IPv6 assignment length'), _('Assign a part of given length of every public IPv6-prefix to this interface')); - o.datatype = 'max(128)'; - o.default = '64'; - s.taboption('advanced', form.Value, 'link_id', _('IPv6 assignment hint'), _('Assign prefix parts using this hexadecimal subprefix ID for this interface.')); o = s.taboption('advanced', form.Value, 'ip4assign', _('IPv4 assignment length')); @@ -36,13 +32,5 @@ return network.registerProtocol('hnet', { o = s.taboption('advanced', form.Value, 'dnsname', _('DNS-Label / FQDN')); o.default = s.section; - - o = s.taboption('advanced', form.Value, 'macaddr', _('Override MAC address')); - o.datatype = 'macaddr'; - o.placeholder = dev ? (dev.getMAC() || '') : ''; - - o = s.taboption('advanced', form.Value, 'mtu', _('Override MTU')); - o.datatype = 'max(9200)'; - o.placeholder = dev ? (dev.getMTU() || '1500') : '1500'; } }); |