summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-bonding/htdocs/luci-static/resources/protocol/bonding.js
diff options
context:
space:
mode:
authorHelge Mader <ma@dev.tdt.de>2021-07-15 09:33:31 +0200
committerHelge Mader <ma@dev.tdt.de>2021-07-15 11:01:01 +0200
commit64a066c33972ce803b3e78292081285e5013b4aa (patch)
tree35f76203588053da28a6f49bc5f4f5f22b735d18 /protocols/luci-proto-bonding/htdocs/luci-static/resources/protocol/bonding.js
parent7d9ab8d4a741cbc97e9553982e9e352b21ddf5f3 (diff)
luci-proto-bonding: fix member because of API change
Signed-off-by: Helge Mader <ma@dev.tdt.de>
Diffstat (limited to 'protocols/luci-proto-bonding/htdocs/luci-static/resources/protocol/bonding.js')
-rw-r--r--protocols/luci-proto-bonding/htdocs/luci-static/resources/protocol/bonding.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/luci-proto-bonding/htdocs/luci-static/resources/protocol/bonding.js b/protocols/luci-proto-bonding/htdocs/luci-static/resources/protocol/bonding.js
index aadc2306d3..b0ed5b6a11 100644
--- a/protocols/luci-proto-bonding/htdocs/luci-static/resources/protocol/bonding.js
+++ b/protocols/luci-proto-bonding/htdocs/luci-static/resources/protocol/bonding.js
@@ -24,14 +24,16 @@ function getSelectableSlaves(section_id) {
var slaves = L.toArray(uci.get('network', interfaces[j]['.name'], 'slaves'));
for (var k = 0; k < slaves.length; k++) {
- if (devices[i].ifname == slaves[k] && interfaces[j]['.name'] != section_id) {
- in_use = true;
+ if (devices[i].ifname == slaves[k] || devices[i].device == slaves[k]) {
+ if (interfaces[j]['.name'] != section_id) {
+ in_use = true;
+ }
}
}
}
}
if (in_use == false) {
- rv.push(devices[i].ifname);
+ devices[i].device == null ? rv.push(devices[i].ifname) : rv.push(devices[i].device)
}
}
}