From 17a62e0f4e4cdaa53c33afa9a5b913044f3716b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Thu, 27 May 2021 21:01:41 +0200 Subject: [PATCH] luci-mod-network: allow setting bridge device MTU and MAC MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Miłecki (cherry picked from commit bbb3c4c4a59bc01e2f18d98596af1af354568fdd) --- .../htdocs/luci-static/resources/tools/network.js | 2 ++ 1 file changed, 2 insertions(+) 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'); -- 2.30.2