summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-06-16 09:47:47 +0200
committerJo-Philipp Wich <jo@mein.io>2022-06-16 09:52:36 +0200
commit8effea58d7281fd4f2b6c31d534195dba27a850b (patch)
tree2c6c008c8d082dea24930a58f746048aa27a0e1c /modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js
parentdae17ede361a76be3a06737b88e00dc04e75b055 (diff)
luci-base: network.js: consider uci config for Device.getType()/getParent()
For network devices declared in uci but not yet created by netifd, the runtime status information will be unavailable, causing methods such as `getType()` to assume plain ethernet interfaces and `getParent()` to fail resolving parent devices. Fall back to infer the information from uci configuration settings in such cases to give accurate type hints to callers. In particular, this prevents LuCI from turning wireless target networks containing a to-be-created bridge device into bridges themselves. Fixes: https://github.com/openwrt/packages/issues/18768 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js')
0 files changed, 0 insertions, 0 deletions