commit | 77b5851e492e310145b447837138769a62fa91f9 | [log] [tgz] |
---|---|---|
author | Pankaj Berde <pankaj@onlab.us> | Fri Apr 05 12:06:37 2013 -0700 |
committer | Pankaj Berde <pankaj@onlab.us> | Fri Apr 05 12:06:37 2013 -0700 |
tree | dda062f84fad681d7e2ea64d79fa0bc61db184f4 | |
parent | 53874bceb7f0791eac54bed9d87f4c5e66b03439 [diff] |
Port search improved
diff --git a/src/main/java/net/floodlightcontroller/linkdiscovery/internal/LinkStorageImpl.java b/src/main/java/net/floodlightcontroller/linkdiscovery/internal/LinkStorageImpl.java index e67ecac..5c01af6 100644 --- a/src/main/java/net/floodlightcontroller/linkdiscovery/internal/LinkStorageImpl.java +++ b/src/main/java/net/floodlightcontroller/linkdiscovery/internal/LinkStorageImpl.java
@@ -97,8 +97,10 @@ // check if the link exists - List<Vertex> currLinks = new ArrayList<Vertex>(); - for (Vertex V : vportSrc.asVertex().query().direction(Direction.OUT).labels("link").vertices()) { + List<IPortObject> currLinks = new ArrayList<IPortObject>(); + Iterable<IPortObject> currPorts = vportSrc.getLinkedPorts(); + + for (IPortObject V : currPorts) { currLinks.add(V); }