Sho SHIMIZU
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
......@@ -451,6 +451,7 @@ class ConfigProvider implements DeviceProvider, LinkProvider, HostProvider {
.map(p -> new ConnectPoint(device.id(), p.number()))
.collect(Collectors.toSet());
Set<ConnectPoint> missing = connectPoints.stream()
.filter(cp -> cp.deviceId().equals(device.id()))
.filter(cp -> !existing.contains(cp))
.collect(Collectors.toSet());
......