ConfigFlowRuleProgrammable
- FlowRuleProgrammable implementation which acts as it has accepted any FlowRule request.
-- To be used for a device which exist in-line transparently (e.g., Amplifier ONOS-6067)
Change-Id: Ief09297eb900b804b1c8eb4d6705bbad85a552ad
diff --git a/core/api/src/main/java/org/onosproject/net/flow/DefaultFlowEntry.java b/core/api/src/main/java/org/onosproject/net/flow/DefaultFlowEntry.java
index 943ad84..fadc3a2 100644
--- a/core/api/src/main/java/org/onosproject/net/flow/DefaultFlowEntry.java
+++ b/core/api/src/main/java/org/onosproject/net/flow/DefaultFlowEntry.java
@@ -118,6 +118,17 @@
}
/**
+ * Creates a flow entry based on specified flow rule and state.
+ *
+ * @param rule to use as base
+ * @param state of the flow entry
+ */
+ public DefaultFlowEntry(FlowRule rule, FlowEntryState state) {
+ this(rule, state, 0, 0, 0);
+ }
+
+
+ /**
* Creates a flow entry of flow table specified with the flow rule, state,
* live type and statistic information.
*