Add yang models for bundle messages
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / util / EncodeConstants.java
index b3f6dff511b092771c57699d6129e0ee8880765a..8c6539b6e75135ec4d73ce3d203f57caf7900308 100644 (file)
@@ -9,7 +9,7 @@
 package org.opendaylight.openflowjava.protocol.api.util;
 
 /**
- * Stores common constants
+ * Stores common constants.
  * @author michal.polkorab
  */
 public abstract class EncodeConstants {
@@ -18,15 +18,23 @@ public abstract class EncodeConstants {
     public static final byte PADDING = 8;
     /** OpenFlow v1.0 wire protocol number */
     public static final byte OF10_VERSION_ID = 0x01;
-    /** OpenFlow v1.0 wire protocol number */
+    /** OpenFlow v1.3 wire protocol number */
     public static final byte OF13_VERSION_ID = 0x04;
+    /** OpenFlow v1.4 wire protocol number */
+    public static final byte OF14_VERSION_ID = 0x05;
+    /** OpenFlow v1.5 wire protocol number */
+    public static final byte OF15_VERSION_ID = 0x06;
+    /** OpenFlow Hello message type value */
+    public static final byte OF_HELLO_MESSAGE_TYPE_VALUE = 0;
+    /** OpenFlow PacketIn message type value */
+    public static final byte OF_PACKETIN_MESSAGE_TYPE_VALUE = 10;
     /** Index of length in Openflow header */
     public static final int OFHEADER_LENGTH_INDEX = 2;
     /** Size of Openflow header */
     public static final int OFHEADER_SIZE = 8;
     /** Zero length - used when the length is updated later */
     public static final int EMPTY_LENGTH = 0;
-    
+
     /** Length of mac address */
     public static final byte MAC_ADDRESS_LENGTH = 6;
     /** Number of groups in ipv4 address */
@@ -52,10 +60,20 @@ public abstract class EncodeConstants {
     /** Common experimenter value */
     public static final int EXPERIMENTER_VALUE = 0xFFFF;
 
-
     /** OF v1.0 maximal port name length */
     public static final byte MAX_PORT_NAME_LENGTH = 16;
-    /** OF v1.3 lenght of experimenter_ids - see Multipart TableFeatures (properties) message */
-    public static final byte EXPERIMENTER_IDS_LENGTH = 8;
 
+    /** ONF Approved Extensions Constants */
+    /** Experimenter ID of ONF approved extensions */
+    public static final long ONF_EXPERIMENTER_ID = 0x4F4E4600;
+    /** ONFOXM_ET_TCP_FLAGS value */
+    public static final int ONFOXM_ET_TCP_FLAGS = 42;
+    /** ONF_ET_BUNDLE_CONTROL message type */
+    public static final int ONF_ET_BUNDLE_CONTROL = 2300;
+    /** ONF_ET_BUNDLE_ADD_MESSAGE message type */
+    public static final int ONF_ET_BUNDLE_ADD_MESSAGE = 2301;
+
+    private EncodeConstants() {
+        //not called
+    }
 }