From: Rafał Miłecki Date: Thu, 27 May 2021 19:01:41 +0000 (+0200) Subject: luci-mod-network: allow setting bridge device MTU and MAC X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=bbb3c4c4a59bc01e2f18d98596af1af354568fdd;p=openwrt-luci.git luci-mod-network: allow setting bridge device MTU and MAC Signed-off-by: Rafał Miłecki --- 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');