luci-mod-network: allow setting bridge device MTU and MAC
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
parent
d47fd48568
commit
bbb3c4c4a5
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue