luci-mod-status: 29_ports.js: attempt to use getBuiltinEthernetPorts
authorJo-Philipp Wich <[email protected]>
Thu, 24 Aug 2023 14:46:02 +0000 (16:46 +0200)
committerJo-Philipp Wich <[email protected]>
Thu, 24 Aug 2023 14:50:05 +0000 (16:50 +0200)
commit9b3c7d3ee408561292eb3ea554a92f92dbf99461
treef32cc71cac6563cbb44c6aff9492943fd77f4dea
parentfc638c8e01fb71c627e20e1c1b6854345eb91763
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 <[email protected]>
(cherry picked from commit ed059e4cd3ee9b15aabcc974b4e66b0090b920ae)
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/29_ports.js