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:
Nicolò Veronese 2025-05-04 18:13:50 +02:00 committed by Paul Donald
parent 74eef5c7d9
commit c996de5a82
1 changed files with 2 additions and 2 deletions

View File

@ -619,7 +619,7 @@ return baseclass.extend({
o.depends('type', 'bonding');
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('balance-rr', _('Round robin'));
o.value('balance-xor', _('Transmit hash - balance-xor'));
@ -660,7 +660,7 @@ return baseclass.extend({
return 'balance-alb';
default:
return 'active-backup';
return 'balance-rr';
}
};
o.depends('type', 'bonding');