Skip to content
Snippets Groups Projects
Commit ce68c6ed authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian
Browse files

Bugfix: portLinks.containsKey() must use NodePortTuple as the parameter, not long.

parent c5c7c78f
No related branches found
No related tags found
No related merge requests found
...@@ -786,11 +786,11 @@ IFloodlightModule, IInfoProvider, IHAListener { ...@@ -786,11 +786,11 @@ IFloodlightModule, IInfoProvider, IHAListener {
switchLinks.get(lt.getDst()).add(lt); switchLinks.get(lt.getDst()).add(lt);
// index both ends by switch:port // index both ends by switch:port
if (!portLinks.containsKey(lt.getSrc())) if (!portLinks.containsKey(srcNpt))
portLinks.put(srcNpt, new HashSet<Link>()); portLinks.put(srcNpt, new HashSet<Link>());
portLinks.get(srcNpt).add(lt); portLinks.get(srcNpt).add(lt);
if (!portLinks.containsKey(lt.getDst())) if (!portLinks.containsKey(dstNpt))
portLinks.put(dstNpt, new HashSet<Link>()); portLinks.put(dstNpt, new HashSet<Link>());
portLinks.get(dstNpt).add(lt); portLinks.get(dstNpt).add(lt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment