luci-proto-bonding: fix member because of API change
Signed-off-by: Helge Mader <ma@dev.tdt.de>
(cherry picked from commit 64a066c339
)
This commit is contained in:
parent
119701cce3
commit
843d11234f
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'));
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue