commit | a7cf8c8f554264390ce2a156593f99e24d6954fc | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Thu Feb 08 15:07:06 2018 -0800 |
committer | Yuta HIGUCHI <y-higuchi@opennetworking.org> | Fri Feb 09 17:51:28 2018 +0000 |
tree | e338a75c9e39b455d5e452fd67f62ffb5942530b | |
parent | 97f9d4c49b6e1670182e0e3bbb1223f56d0996ef [diff] [blame] |
Remove deprecated DefaultPath constructor with a scalar cost Change-Id: Ifc4104cff773c9c692cc108fda02ce44bc6c2870
diff --git a/apps/optical-model/src/test/java/org/onosproject/net/optical/intent/impl/compiler/OpticalPathIntentCompilerTest.java b/apps/optical-model/src/test/java/org/onosproject/net/optical/intent/impl/compiler/OpticalPathIntentCompilerTest.java index d8ae141..43c279d 100644 --- a/apps/optical-model/src/test/java/org/onosproject/net/optical/intent/impl/compiler/OpticalPathIntentCompilerTest.java +++ b/apps/optical-model/src/test/java/org/onosproject/net/optical/intent/impl/compiler/OpticalPathIntentCompilerTest.java
@@ -17,6 +17,7 @@ import org.junit.Before; import org.junit.Test; +import org.onlab.graph.ScalarWeight; import org.onosproject.TestApplicationId; import org.onosproject.core.ApplicationId; import org.onosproject.core.CoreService; @@ -78,7 +79,7 @@ .appId(appId) .src(d1p1) .dst(d3p1) - .path(new DefaultPath(PID, links, hops)) + .path(new DefaultPath(PID, links, ScalarWeight.toWeight(hops))) .lambda(createLambda()) .signalType(OchSignalType.FIXED_GRID) .build();