From: Nicolò Veronese Date: Sun, 4 May 2025 16:13:50 +0000 (+0200) Subject: luci-mod-network: fix default policy for bondig device X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=c996de5a82c3a13b57a593411f445a1d76cf90c4;p=project%2Fluci.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 --- 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 477fab26e4..c342d3ce92 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 @@ -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');