From 79947af064122438c803f3b7bc580ede093a26e4 Mon Sep 17 00:00:00 2001 From: Rafał Miłecki Date: Fri, 28 May 2021 09:58:12 +0200 Subject: treewide: drop MAC and MTU from interfaces (protocols) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Those are L2 options that are not part of interfaces (L3), should not be set there and don't work. Setting MAC and MTU should be done at device layer (config device) and is supported for basic types already. Signed-off-by: Rafał Miłecki --- .../htdocs/luci-static/resources/protocol/dhcpv6.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'protocols/luci-proto-ipv6') diff --git a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js index 41fdc6d9d5..2e75cb8632 100644 --- a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js +++ b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js @@ -12,7 +12,7 @@ return network.registerProtocol('dhcpv6', { }, renderFormOptions: function(s) { - var dev = this.getL2Device() || this.getDevice(), o; + var o; o = s.taboption('general', form.ListValue, 'reqaddress', _('Request IPv6-address')); o.value('try'); @@ -32,13 +32,5 @@ return network.registerProtocol('dhcpv6', { o = s.taboption('advanced', form.Value, 'clientid', _('Client ID to send when requesting DHCP')); o.datatype = 'hexstring'; - - 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.placeholder = dev ? (dev.getMTU() || '1500') : '1500'; - o.datatype = 'max(9200)'; } }); -- cgit v1.2.3