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)
committerJo-Philipp Wich <jo@mein.io>
Mon, 29 Mar 2021 14:30:32 +0000 (16:30 +0200)
commitf48f9f11e7f6e3d74e2fd4b6b2478e5673f2f459
treefb6a8cac9ee6ea233a90dd8c63a904319581f823
parentb9fad85f2e3fc988528fd326db715719288604ea
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>
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js