Bug 5596 Cleaning part 2
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / OFConstants.java
index 9c9ee5d252989f4a0af452b086d63265a98c1924..e08903b339dcaf44e6903cd82f1f8fb0ab4675d7 100644 (file)
@@ -9,6 +9,8 @@ package org.opendaylight.openflowplugin.api;
 
 import java.math.BigInteger;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.FlowCookie;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.Match;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder;
 
 /**
  * OFP related constants
@@ -26,13 +28,12 @@ public final class OFConstants {
     /** enum ofp_port_no, reserved port: local openflow port  */
     public static final short OFPP_LOCAL = ((short)0xfffe);
 
-
     /** openflow protocol 1.0 - version identifier */
     public static final short OFP_VERSION_1_0 = 0x01;
     /** openflow protocol 1.3 - version identifier */
     public static final short OFP_VERSION_1_3 = 0x04;
 
-    public final static String OF_URI_PREFIX = "openflow:";
+    public static final String OF_URI_PREFIX = "openflow:";
 
     /** enum ofp_table: Table numbering, wildcard table used for table config, flow stats and flow deletes. */
     public static final Short OFPTT_ALL = 0xff;
@@ -47,10 +48,16 @@ public final class OFConstants {
     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;
+    /** Empty flow match */
+    public static final Match EMPTY_MATCH = new MatchBuilder().build();
+
     /** 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;
@@ -58,7 +65,6 @@ public final class OFConstants {
      *  sent to the controller. */
     public static final Integer OFPCML_NO_BUFFER = 0xffff;
 
-
     public static final int MAC_ADDRESS_LENGTH = 6;
     public static final int SIZE_OF_LONG_IN_BYTES = 8;
     public static final int SIGNUM_UNSIGNED = 1;