mirror of https://git.openwrt.org/project/luci.git
luci-mod-network: fix default policy for bondig device
This fixes the missing policy option in UCI when selecting 'active-backup' as the required policy. This has been discussed on issue #7683. Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
This commit is contained in:
parent
74eef5c7d9
commit
c996de5a82
|
@ -619,7 +619,7 @@ return baseclass.extend({
|
||||||
o.depends('type', 'bonding');
|
o.depends('type', 'bonding');
|
||||||
|
|
||||||
o = this.replaceOption(s, 'devgeneral', form.ListValue, 'policy', _('Bonding Policy'));
|
o = this.replaceOption(s, 'devgeneral', form.ListValue, 'policy', _('Bonding Policy'));
|
||||||
o.default = 'active-backup';
|
o.default = 'balance-rr';
|
||||||
o.value('active-backup', _('Active backup'));
|
o.value('active-backup', _('Active backup'));
|
||||||
o.value('balance-rr', _('Round robin'));
|
o.value('balance-rr', _('Round robin'));
|
||||||
o.value('balance-xor', _('Transmit hash - balance-xor'));
|
o.value('balance-xor', _('Transmit hash - balance-xor'));
|
||||||
|
@ -660,7 +660,7 @@ return baseclass.extend({
|
||||||
return 'balance-alb';
|
return 'balance-alb';
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 'active-backup';
|
return 'balance-rr';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
o.depends('type', 'bonding');
|
o.depends('type', 'bonding');
|
||||||
|
|
Loading…
Reference in New Issue