Initial Match Action Module implementation
This patch set implements the Match Action framework that
Brian and I have been working on. Still a work in progress,
not all implementations complete, and not all javadocs and
tests in place.
Unit tests are currently not working, so they are commented out.
Change-Id: I61d79555c6bbb2d5437b2433613ab47ab8cea4f6
diff --git a/src/main/java/net/onrc/onos/core/matchaction/SwitchResult.java b/src/main/java/net/onrc/onos/core/matchaction/SwitchResult.java
new file mode 100644
index 0000000..6faaa0d
--- /dev/null
+++ b/src/main/java/net/onrc/onos/core/matchaction/SwitchResult.java
@@ -0,0 +1,37 @@
+package net.onrc.onos.core.matchaction;
+
+import net.onrc.onos.core.util.Dpid;
+
+public class SwitchResult {
+ private Dpid sw;
+ private Status status;
+ private MatchActionOperationsId matchSetId;
+
+ protected enum Status {
+ SUCCESS,
+ FAILURE,
+ UNKNOWN
+ }
+
+ protected SwitchResult(MatchActionOperationsId match, Dpid sw) {
+ this.sw = sw;
+ this.status = Status.UNKNOWN;
+ this.matchSetId = match;
+ }
+
+ protected void setStatus(Status newStatus) {
+ this.status = newStatus;
+ }
+
+ protected Status getStatus() {
+ return this.status;
+ }
+
+ protected MatchActionOperationsId getMatchActionOperationsId() {
+ return this.matchSetId;
+ }
+
+ protected Dpid getSwitch() {
+ return this.sw;
+ }
+}