Interface for Flow manager abstraction in ONOS
diff --git a/src/main/java/net/floodlightcontroller/util/FlowEntry.java b/src/main/java/net/floodlightcontroller/util/FlowEntry.java
index 717be4e..56a1631 100644
--- a/src/main/java/net/floodlightcontroller/util/FlowEntry.java
+++ b/src/main/java/net/floodlightcontroller/util/FlowEntry.java
@@ -13,6 +13,7 @@
import net.floodlightcontroller.util.MACAddress;
import net.floodlightcontroller.util.IPv4;
+import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonProperty;
/**
@@ -22,6 +23,7 @@
* support multiple in-ports and multiple out-ports.
*/
public class FlowEntry {
+ private FlowId flowId; //FlowID of flowEntry
private FlowEntryId flowEntryId; // The Flow Entry ID
private FlowEntryMatch flowEntryMatch; // The Flow Entry Match
private ArrayList<FlowEntryAction> flowEntryActions; // The Flow Entry Actions
@@ -327,4 +329,19 @@
return ret;
}
+
+ /**
+ * @return the flowId
+ */
+ @JsonIgnore
+ public FlowId getFlowId() {
+ return flowId;
+ }
+
+ /**
+ * @param flowId the flowId to set
+ */
+ public void setFlowId(FlowId flowId) {
+ this.flowId = flowId;
+ }
}