commit | 71ade56cbf72c38be4e7aa80a234184034d03b69 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Wed Feb 18 15:08:07 2015 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Feb 20 00:59:03 2015 +0000 |
tree | ae6ccbd94654e6f120bb917b1c9fd5e4b7840396 | |
parent | 97cf7c4138428d706e1dce459f58958569a706fc [diff] [blame] |
Refactor Intent subsystem to eliminate using FlowRuleBatchOperation Change-Id: Iee76dac5fa9935713ffc370b34ac47d9286ff351
diff --git a/core/api/src/main/java/org/onosproject/net/flow/FlowRuleOperations.java b/core/api/src/main/java/org/onosproject/net/flow/FlowRuleOperations.java index 498cc05..84e0b8b 100644 --- a/core/api/src/main/java/org/onosproject/net/flow/FlowRuleOperations.java +++ b/core/api/src/main/java/org/onosproject/net/flow/FlowRuleOperations.java
@@ -104,6 +104,17 @@ } /** + * Appends an existing flow rule to the current stage. + * + * @param flowRuleOperation flow rule operation + * @return this + */ + public Builder operation(FlowRuleOperation flowRuleOperation) { + currentStage.add(flowRuleOperation); + return this; + } + + /** * Appends a flow rule modify to the current stage. * * @param flowRule flow rule