From c996de5a82c3a13b57a593411f445a1d76cf90c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicol=C3=B2=20Veronese?= Date: Sun, 4 May 2025 18:13:50 +0200 Subject: [PATCH] luci-mod-network: fix default policy for bondig device MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- .../htdocs/luci-static/resources/tools/network.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.30.2