IDs for MatchAction objects using block allocation
Modified MatchActionId and MatchActionOperationsId to
use longs as IDs and to use ID block allocation to
create them.
Change-Id: I757b353a94a498f624df345cbc16975714db15b3
diff --git a/src/main/java/net/onrc/onos/core/matchaction/MatchAction.java b/src/main/java/net/onrc/onos/core/matchaction/MatchAction.java
index 24790b8..5f7d9fb 100644
--- a/src/main/java/net/onrc/onos/core/matchaction/MatchAction.java
+++ b/src/main/java/net/onrc/onos/core/matchaction/MatchAction.java
@@ -24,8 +24,23 @@
* @param match the Match object as match condition on the port
* @param actions the list of Action objects as actions on the switch
*/
+ public MatchAction(MatchActionId id, SwitchPort port, Match match, List<Action> actions) {
+ this.id = id;
+ this.port = port;
+ this.match = match;
+ this.actions = actions;
+ }
+
+ /**
+ * Constructor. TEMPORARY
+ *
+ * @param id ID for this MatchAction object
+ * @param port switch port to apply changes to
+ * @param match the Match object as match condition on the port
+ * @param actions the list of Action objects as actions on the switch
+ */
public MatchAction(String id, SwitchPort port, Match match, List<Action> actions) {
- this.id = new MatchActionId(id);
+ this.id = null;
this.port = port;
this.match = match;
this.actions = actions;