Merge pull request #5190 from TDT-AG/pr/20210715-proto-bonding
luci-proto-bonding: fix member because of API change
This commit is contained in:
commit
3d2a2ec1fa
1 changed files with 5 additions and 3 deletions
|
@ -24,14 +24,16 @@ function getSelectableSlaves(section_id) {
|
||||||
var slaves = L.toArray(uci.get('network', interfaces[j]['.name'], 'slaves'));
|
var slaves = L.toArray(uci.get('network', interfaces[j]['.name'], 'slaves'));
|
||||||
|
|
||||||
for (var k = 0; k < slaves.length; k++) {
|
for (var k = 0; k < slaves.length; k++) {
|
||||||
if (devices[i].ifname == slaves[k] && interfaces[j]['.name'] != section_id) {
|
if (devices[i].ifname == slaves[k] || devices[i].device == slaves[k]) {
|
||||||
in_use = true;
|
if (interfaces[j]['.name'] != section_id) {
|
||||||
|
in_use = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (in_use == false) {
|
if (in_use == false) {
|
||||||
rv.push(devices[i].ifname);
|
devices[i].device == null ? rv.push(devices[i].ifname) : rv.push(devices[i].device)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue