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);
     }