treewide: drop MAC and MTU from interfaces (protocols)
[project/luci.git] / protocols / luci-proto-hnet / htdocs / luci-static / resources / protocol / hnet.js
index b8776e873fb6f43f5979bb4f1010e1f560589ce2..5762ab7bf2e401c48d283b48c72567a277093b0e 100644 (file)
@@ -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';
        }
 });