luci-mod-network: allow setting bridge device MTU and MAC
Signed-off-by: Rafał Miłecki <rafal@milecki.pl> (cherry picked from commit bbb3c4c4a59bc01e2f18d98596af1af354568fdd)
This commit is contained in:
parent
a86e770881
commit
17a62e0f4e
@ -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');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user