luci-mod-network: make condition for disabling legacy bridging more specific
authorJo-Philipp Wich <jo@mein.io>
Mon, 29 Mar 2021 14:30:32 +0000 (16:30 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 27 May 2021 10:19:05 +0000 (12:19 +0200)
commit08f5bc236e9e1730212a2ad4b12905ca17f0dcf6
treecb0cd5a082c712a221b32d98128817e0c4adf0bc
parent8c2ea08aa826651d3c60ced8a45281f44810c4e3
luci-mod-network: make condition for disabling legacy bridging more specific

Only disable legacy bridging if an existing network.device section with type
bridge is found, ignore non-type sections since those do not declare a
bridge but set attributes on top of an existing one.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f48f9f11e7f6e3d74e2fd4b6b2478e5673f2f459)
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js