summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-05-27 21:01:41 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-05-28 15:34:41 +0200
commitbbb3c4c4a59bc01e2f18d98596af1af354568fdd (patch)
tree0dd0ac1a359ce1efd565e7fe864bf24f0f1c24f2 /modules/luci-mod-network/htdocs/luci-static
parentd47fd485686a662be5bde7362c5ebd8530a1d78f (diff)
luci-mod-network: allow setting bridge device MTU and MAC
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-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');