luci-mod-network: fix option ip6table in network/interfaces
authorVladislav Grigoryev <[email protected]>
Thu, 26 Aug 2021 01:42:36 +0000 (04:42 +0300)
committerJo-Philipp Wich <[email protected]>
Tue, 12 Oct 2021 21:02:45 +0000 (23:02 +0200)
Fix the incorrectly displayed value for the option "ip6table".

Signed-off-by: Vladislav Grigoryev <[email protected]>
(cherry picked from commit 3ebdf51f9b2e713cd655c0f97f2542c96736cae5)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index f7b8ddcafe2a2a17b7fd1709a039fd0b56683da1..ffa0ef8ec3394c30724aa93eec578d4765268205 100644 (file)
@@ -950,7 +950,7 @@ return view.extend({
                                o = nettools.replaceOption(s, 'advanced', form.Value, 'ip6table', _('Override IPv6 routing table'));
                                o.datatype = 'or(uinteger, string)';
                                for (var i = 0; i < rtTables.length; i++)
-                                       o.value(rtTables[i][1], '%s (%d)'.format(rtTables[i][0], rtTables[i][1]));
+                                       o.value(rtTables[i][1], '%s (%d)'.format(rtTables[i][1], rtTables[i][0]));
 
                                o = nettools.replaceOption(s, 'advanced', form.Flag, 'delegate', _('Delegate IPv6 prefixes'), _('Enable downstream delegation of IPv6 prefixes available on this interface'));
                                o.default = o.enabled;