alshabib
Committed by Gerrit Code Review

add ports back to discoverer after a device has

gone offline and come back.

Change-Id: I524e25570f9eee8870e97ed09612c423e0cf9588
......@@ -570,7 +570,7 @@ public class LldpLinkProvider extends AbstractProvider implements LinkProvider {
case DEVICE_AVAILABILITY_CHANGED:
if (deviceService.isAvailable(deviceId)) {
log.debug("Device up {}", deviceId);
updateDevice(device);
updateDevice(device).ifPresent(ld -> updatePorts(ld, deviceId));
} else {
log.debug("Device down {}", deviceId);
removeDevice(deviceId);
......