luci-base: widgets.js: CBINetworkSelect: honour exclude option

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-08-16 09:49:11 +02:00
parent c2d6770801
commit 24aa675a46

View file

@ -358,7 +358,7 @@ var CBINetworkSelect = form.ListValue.extend({
var network = this.networks[i], var network = this.networks[i],
name = network.getName(); name = network.getName();
if (name == 'loopback' || !this.filter(section_id, name)) if (name == 'loopback' || name == this.exclude || !this.filter(section_id, name))
continue; continue;
if (this.novirtual && network.isVirtual()) if (this.novirtual && network.isVirtual())