luci-mod-status: 29_ports.js: attempt to use getBuiltinEthernetPorts
authorJo-Philipp Wich <jo@mein.io>
Thu, 24 Aug 2023 14:46:02 +0000 (16:46 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 24 Aug 2023 14:49:30 +0000 (16:49 +0200)
commited059e4cd3ee9b15aabcc974b4e66b0090b920ae
tree11e92ad7b40b2d450490981edb4a84189d46e1e3
parent98e37433e7f33b3e2ee751250e04b194a0aa6a0b
luci-mod-status: 29_ports.js: attempt to use getBuiltinEthernetPorts

Try to use the new luci/getBuiltinEthernetPorts RPC call to enumerate known
ports and fall back to manual board.json parsing if the call is unavailable
yet. The fallback code will be dropped in a while when everything settled.

Ref: #6534, #6538
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/29_ports.js