commit | 33505ff210df8637142a22dde8f69ba289775fcc | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Tue Feb 25 18:45:44 2014 -0800 |
committer | Gerrit Code Review <gerrit2@onos-services> | Wed Feb 26 15:27:55 2014 -0800 |
tree | 6cdfc8cf491d3a80427967ca3309beb164268b14 | |
parent | adef2f6c120807d4b961d1053b320f23b1e94847 [diff] |
Fix comparison of Long Change-Id: Ifdea11b91a081c9843a0b8535c8894724f5ace11
diff --git a/src/main/java/net/onrc/onos/intent/ConstrainedBFSTree.java b/src/main/java/net/onrc/onos/intent/ConstrainedBFSTree.java index 7f38883..a1edb20 100644 --- a/src/main/java/net/onrc/onos/intent/ConstrainedBFSTree.java +++ b/src/main/java/net/onrc/onos/intent/ConstrainedBFSTree.java
@@ -60,7 +60,7 @@ if (path == null && switchSearched.contains(leafSwitch)) { path = new Path(); Long sw = leafSwitch.getDpid(); - while (sw != rootSwitchDpid) { + while (!sw.equals(rootSwitchDpid)) { LinkEvent upstreamLink = upstreamLinks.get(sw); path.add(0, upstreamLink); sw = upstreamLink.getSrc().getDpid();