luci-mod-status: improve detection of static cfg
authorDavid Härdeman <[email protected]>
Sun, 9 Nov 2025 10:36:03 +0000 (11:36 +0100)
committerPaul Donald <[email protected]>
Tue, 18 Nov 2025 22:24:22 +0000 (23:24 +0100)
commit6cb0bebf5f9a07fce7e9c817550050f5ce135500
tree43fb58fcb10fa7a3fea994e63fb7a93eb2ac718f
parent4a651d591b987e74ab416bc58bb46c1a0371947c
luci-mod-status: improve detection of static cfg

Note that "duid" from UCI can be *either* "<DUID>" or "<DUID>%<IAID>",
so update the code to handle both cases.

Also, make sure the "Reserve IP" button is disabled if the "duid" is
unknown (can only happen if dnsmasq is responsible for DHCPv6) and that
DUIDs/IAIDs are always rendered in lowercase in the UI.

Signed-off-by: David Härdeman <[email protected]>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js