luci-mod-network: ra_preference option uses '' instead of "medium"
authorAndy Chiang <redacted>
Fri, 15 May 2026 11:23:26 +0000 (18:23 +0700)
committerPaul Donald <redacted>
Tue, 19 May 2026 09:15:11 +0000 (12:15 +0300)
"medium" is the default ra_preference option in odhcpd.
Which has the same effect as not defining it.
Using '' will prevent unnecessary parameters from being written to the flash.

Link https://github.com/openwrt/odhcpd/blob/master/README.md

Signed-off-by: Andy Chiang <redacted>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index 67a849a9ee88a7031637c0f9bbb83d6d80a9a3b1..bd0d479aa468a4834c5a0bf54bc9c4be3f08d8ab 100644 (file)
@@ -897,9 +897,8 @@ return view.extend({
 
                                        so = ss.taboption('ipv6-ra', form.ListValue, 'ra_preference', _('Router Priority'),
                                                _('A tie-breaker for clients and their routes when multiple routers exist on the same network.'));
-                                       so.default = 'medium';
+                                       so.value('', _('Medium'));
                                        so.value('low', _('Low'));
-                                       so.value('medium', _('Medium'));
                                        so.value('high', _('High'));
                                        so.depends('ra', 'server');
 
git clone https://git.99rst.org/PROJECT