commit | e3af26514753915decfd0e5afb3e7ba347f03e9c | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Tue Dec 01 23:05:34 2015 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Dec 02 16:49:44 2015 +0000 |
tree | ffc6548d6db5c854306266ca808b477d520b6b64 | |
parent | 338bef7784fbaae3a538178a2b4e3e068d4f9832 [diff] |
add ports back to discoverer after a device has gone offline and come back. Change-Id: I524e25570f9eee8870e97ed09612c423e0cf9588
diff --git a/providers/lldp/src/main/java/org/onosproject/provider/lldp/impl/LldpLinkProvider.java b/providers/lldp/src/main/java/org/onosproject/provider/lldp/impl/LldpLinkProvider.java index 94abeba..668d59c 100644 --- a/providers/lldp/src/main/java/org/onosproject/provider/lldp/impl/LldpLinkProvider.java +++ b/providers/lldp/src/main/java/org/onosproject/provider/lldp/impl/LldpLinkProvider.java
@@ -570,7 +570,7 @@ 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);