commit | b8116eb4fa64882f75487e66dfa2fe6aaa8637a9 | [log] [tgz] |
---|---|---|
author | Thomas Vachuska <tom@opennetworking.org> | Wed Aug 09 15:39:39 2017 -0700 |
committer | Thomas Vachuska <tom@opennetworking.org> | Wed Aug 09 23:46:51 2017 +0000 |
tree | 58157a80d86877a5b0894a1b87a039accb8245f5 | |
parent | 1d4b3aa8c16fbc33eb57fd8c18bd8ba94e256e4e [diff] |
ONOS-6817 Fixed a small defect in edge-to-edge path computation. Change-Id: Ic617e8795f8e1abd759bd6d4b541a4a48612e265
diff --git a/core/api/src/main/java/org/onosproject/net/topology/AbstractPathService.java b/core/api/src/main/java/org/onosproject/net/topology/AbstractPathService.java index 7c11b0f..7c831e7 100644 --- a/core/api/src/main/java/org/onosproject/net/topology/AbstractPathService.java +++ b/core/api/src/main/java/org/onosproject/net/topology/AbstractPathService.java
@@ -286,7 +286,7 @@ } if (dstLink != NOT_HOST) { links.add(dstLink); - cost = cost.merge(weigher.weight(new DefaultTopologyEdge(null, null, srcLink))); + cost = cost.merge(weigher.weight(new DefaultTopologyEdge(null, null, dstLink))); } return new DefaultPath(PID, links, cost); }