diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-03-21 00:18:20 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-03-21 00:19:55 +0100 |
commit | edf640af583de122b020d215aadd141028c9458f (patch) | |
tree | 25b7c48197ea70418fa3602a2160d186dfb9e3b5 /modules/luci-mod-network | |
parent | 1c4284150dff9d37503f6f901d047c0caa9a3af0 (diff) |
luci-mod-network: fix legacy bridge configuration
Ref: https://github.com/openwrt/luci/pull/4307#issuecomment-803432603
Fixes: faad7464a8 ("luci-mod-network: add support for network.device sections")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js index 2ca28ee950..66d4eae9e2 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js @@ -53,16 +53,6 @@ function deviceSectionExists(section_id, devname) { exists = exists || (ss['.name'] != section_id && ss.name == devname /* && !ss.type*/); }); - /* Until http://lists.openwrt.org/pipermail/openwrt-devel/2020-July/030397.html lands, - prevent redeclaring interface bridges */ - if (!exists) { - var m = devname.match(/^br-([A-Za-z0-9_]+)$/), - s = m ? uci.get('network', m[1]) : null; - - if (s && s['.type'] == 'interface' && s.type == 'bridge') - exists = true; - } - return exists; } |