commit | ef3f39ed64cd1a99ee670e08400a6619a47213e2 | [log] [tgz] |
---|---|---|
author | Charles M.C. Chan <rascov@gmail.com> | Tue Jul 14 22:21:46 2015 +0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Jul 14 15:16:07 2015 +0000 |
tree | 4a9ef72f53bf5fceab88c2ffcc623ab1804c881a | |
parent | e1fa7324f779f03799fa53b8230e8d83272d41bd [diff] |
Correctly insert a drop action for empty treatment It seems to me that the if-block between line 73 to 80 is ineffective in current implementation Change-Id: Ia28fc9c7c4aace7c60f67a7926ba451e2236c4c8
diff --git a/drivers/src/main/java/org/onosproject/driver/pipeline/DefaultSingleTablePipeline.java b/drivers/src/main/java/org/onosproject/driver/pipeline/DefaultSingleTablePipeline.java index d204938..d42650f 100644 --- a/drivers/src/main/java/org/onosproject/driver/pipeline/DefaultSingleTablePipeline.java +++ b/drivers/src/main/java/org/onosproject/driver/pipeline/DefaultSingleTablePipeline.java
@@ -82,7 +82,7 @@ FlowRule.Builder ruleBuilder = DefaultFlowRule.builder() .forDevice(deviceId) .withSelector(selector) - .withTreatment(fwd.treatment()) + .withTreatment(treatment) .fromApp(fwd.appId()) .withPriority(fwd.priority());