commit | c80570bc05b7a25e50c549bb9fb016d4cfe87957 | [log] [tgz] |
---|---|---|
author | DongRyeol Cha <dr83.cha@samsung.com> | Wed Nov 07 11:55:32 2018 +0900 |
committer | Thomas Vachuska <tom@opennetworking.org> | Wed Nov 28 21:02:19 2018 +0000 |
tree | ef2630e5dba15ed20ba023246d0f99d92da4b5c9 | |
parent | dbe3c7e9ef9745d11523f8527e4fc8d0bbb729c9 [diff] |
Refactor the LinkDiscovery and fix the dropping of portDesc Refactor the LinkDiscovery that to use the DeviceId instead of Device. And fix the issue that using of portDesc is dropped in getLinkProbe. ONOS-7834 Change-Id: I5af1bbb2207b607555bc41ea480a599e1d092a14
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 8be22f9..e2d45a5 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
@@ -451,7 +451,7 @@ } LinkDiscovery ld = discoverers.computeIfAbsent(device.id(), - did -> new LinkDiscovery(device, context)); + did -> new LinkDiscovery(device.id(), context)); if (ld.isStopped()) { ld.start(); }