summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
index 12ed08ad17..199cd0f152 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
@@ -610,11 +610,13 @@ return baseclass.extend({
o.placeholder = getDeviceValue(dev, 'getMTU');
o.datatype = 'max(9200)';
o.depends('type', '');
+ o.depends('type', 'bridge');
o = this.addOption(s, 'devgeneral', form.Value, 'macaddr', _('MAC address'));
o.placeholder = getDeviceValue(dev, 'getMAC');
o.datatype = 'macaddr';
o.depends('type', '');
+ o.depends('type', 'bridge');
o.depends('type', 'macvlan');
o.depends('type', 'veth');