commit | 5dc5a343c2185df190dfaa947c6496c68378d074 | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Wed Dec 03 14:11:16 2014 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Dec 04 06:48:24 2014 +0000 |
tree | 1f1106273ba20fb023703712d752d9bc92282ffd | |
parent | de0891214351eb11e3b0ac8d8ce8816e60fbb481 [diff] |
kick off link discovery only for available devices Change-Id: Ibdec36f5f44a84fa692250d84fdb21c7ddaa42b6
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 d04213a..044dbc8 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
@@ -101,7 +101,7 @@ masterService.addListener(roleListener); LinkDiscovery ld; - for (Device device : deviceService.getDevices()) { + for (Device device : deviceService.getAvailableDevices()) { ld = new LinkDiscovery(device, packetSevice, masterService, providerService, useBDDP); discoverers.put(device.id(), ld);