summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-hnet
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-05-28 09:58:12 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-05-28 15:34:41 +0200
commit79947af064122438c803f3b7bc580ede093a26e4 (patch)
tree60c99bef5a3042efcf7e10e61e74753d68cd664e /protocols/luci-proto-hnet
parentbbb3c4c4a59bc01e2f18d98596af1af354568fdd (diff)
treewide: drop MAC and MTU from interfaces (protocols)
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 <rafal@milecki.pl>
Diffstat (limited to 'protocols/luci-proto-hnet')
-rw-r--r--protocols/luci-proto-hnet/htdocs/luci-static/resources/protocol/hnet.js10
1 files changed, 1 insertions, 9 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 b8776e873f..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'));
@@ -32,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';
}
});