Committed by
Brian O'Connor
Filter connect points by device ID
addMissingPorts(Device) runs per device basis, but the variable missing contains connect points of the other devices. Change-Id: I0c4e74b131c8c4f283b103c77eab7443336b7b8b
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -451,6 +451,7 @@ class ConfigProvider implements DeviceProvider, LinkProvider, HostProvider { | ... | @@ -451,6 +451,7 @@ class ConfigProvider implements DeviceProvider, LinkProvider, HostProvider { |
451 | .map(p -> new ConnectPoint(device.id(), p.number())) | 451 | .map(p -> new ConnectPoint(device.id(), p.number())) |
452 | .collect(Collectors.toSet()); | 452 | .collect(Collectors.toSet()); |
453 | Set<ConnectPoint> missing = connectPoints.stream() | 453 | Set<ConnectPoint> missing = connectPoints.stream() |
454 | + .filter(cp -> cp.deviceId().equals(device.id())) | ||
454 | .filter(cp -> !existing.contains(cp)) | 455 | .filter(cp -> !existing.contains(cp)) |
455 | .collect(Collectors.toSet()); | 456 | .collect(Collectors.toSet()); |
456 | 457 | ... | ... |
-
Please register or login to post a comment