Merge "Bug 4957 No empty transaction for every connection fix"
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / OFConstants.java
index f405a9dcd19a17289a83d32778bb6f5df65180b6..dce622964b81d15152f15dca1e181da17659d17f 100644 (file)
@@ -8,6 +8,7 @@
 package org.opendaylight.openflowplugin.api;
 
 import java.math.BigInteger;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.FlowCookie;
 
 /**
  * OFP related constants
@@ -42,10 +43,18 @@ public final class OFConstants {
     /** enum ofp_group: For OFPFC_DELETE* commands, require matching entries to include this as an
      *  output group. A value of OFPG_ANY indicates no restriction. */
     public static final Long OFPG_ANY = ANY;
+    /** enum ofp_group: Represents all groups for group delete commands. */
+    public static final Long OFPG_ALL = 0xfffffffcL;
     /** Refers to all queues configured at the specified port. */
     public static final Long OFPQ_ALL = ANY;
+    /** Represents all meters for stat requests commands. */
+    public static final Long OFPM_ALL = ANY;
+    /** default cookie */
     public static final BigInteger DEFAULT_COOKIE = BigInteger.ZERO;
     public static final BigInteger DEFAULT_COOKIE_MASK = BigInteger.ZERO;
+    public static final FlowCookie DEFAULT_FLOW_COOKIE = new FlowCookie(DEFAULT_COOKIE);
+    public static final Integer DEFAULT_FLOW_PRIORITY = 0x8000;
+
     /** indicates that no buffering should be applied and the whole packet is to be
      *  sent to the controller. */
     public static final Long OFP_NO_BUFFER = 0xffffffffL;