Add Close loop mechanism to PCE Server
[bgpcep.git] / algo / algo-impl / src / main / java / org / opendaylight / algo / impl / ConstrainedShortestPathFirst.java
index 515cd30db93a218fbd7ccb3afb1ff91056513fd7..aab8be55e6e311bd1f63e72565d7407a5d48a9fe 100644 (file)
@@ -71,7 +71,7 @@ public class ConstrainedShortestPathFirst extends AbstractPathComputation {
                 if (relaxMultiConstraints(edge, currentPath) && pathDestination.getCost() < currentCost) {
                     currentCost = pathDestination.getCost();
                     cpathBuilder.setPathDescription(getPathDescription(pathDestination.getPath()))
-                            .setMetric(Uint32.valueOf(pathDestination.getCost()))
+                            .setTeMetric(Uint32.valueOf(pathDestination.getCost()))
                             .setStatus(ComputationStatus.Active);
                     LOG.debug("  Found a valid path up to destination {}", cpathBuilder.getPathDescription());
                 }