Skip to content

Commit

Permalink
luci-mod-network: fix legacy bridge configuration
Browse files Browse the repository at this point in the history
Ref: #4307 (comment)
Fixes: faad746 ("luci-mod-network: add support for network.device sections")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  • Loading branch information
jow- committed Mar 20, 2021
1 parent 1c42841 commit edf640a
Showing 1 changed file with 0 additions and 10 deletions.
Expand Up @@ -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;
}

Expand Down

0 comments on commit edf640a

Please sign in to comment.