commit | d13a37bf3c972defe0ab7eabe539c3430f1dc213 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Fri Jun 12 11:55:17 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Jun 16 17:03:13 2015 +0000 |
tree | 7b764ef57fb3dc9d7130ebd2b35e93094954242c | |
parent | 93d944c2245255b1fbd31e1cead11430f9ad1e3d [diff] [blame] |
Remove deprecated Flow Rule constructors Change-Id: I2a078cbfbeb9db4a04ef1c59acde2fb45672a3cf
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathIntentCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathIntentCompiler.java index d6187cd..90e3981 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathIntentCompiler.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathIntentCompiler.java
@@ -97,7 +97,14 @@ } TrafficTreatment treatment = treatmentBuilder.setOutput(egress.port()).build(); - return new DefaultFlowRule(ingress.deviceId(), selector, treatment, 123, appId, 0, true); + return DefaultFlowRule.builder() + .forDevice(ingress.deviceId()) + .withSelector(selector) + .withTreatment(treatment) + .withPriority(123) + .fromApp(appId) + .makePermanent() + .build(); } private boolean isLast(List<Link> links, int i) {