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

Change buildRoute() to use only RouteId as the only parameter as srcId and...

Change buildRoute() to use only RouteId as the only parameter as srcId and dstId are included in it.
parent 7d3fe254
No related branches found
No related tags found
No related merge requests found
......@@ -567,8 +567,10 @@ public class TopologyInstance {
}
}
protected Route buildroute(RouteId id, long srcId, long dstId) {
protected Route buildroute(RouteId id) {
NodePortTuple npt;
long srcId = id.getSrc();
long dstId = id.getDst();
LinkedList<NodePortTuple> switchPorts =
new LinkedList<NodePortTuple>();
......@@ -668,7 +670,7 @@ public class TopologyInstance {
if (pathcache.containsKey(id)) {
result = pathcache.get(id);
} else {
result = buildroute(id, srcId, dstId);
result = buildroute(id);
pathcache.put(id, result);
}
if (log.isTraceEnabled()) {
......
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