InstructionSerializer split into separate serializers
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / util / InstructionConstants.java
diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/util/InstructionConstants.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/util/InstructionConstants.java
new file mode 100644 (file)
index 0000000..8e0ae6e
--- /dev/null
@@ -0,0 +1,44 @@
+/*\r
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+\r
+package org.opendaylight.openflowjava.protocol.impl.util;\r
+\r
+/**\r
+ * @author michal.polkorab\r
+ *\r
+ */\r
+public class InstructionConstants {\r
+\r
+    /** Openflow v1.3 OFPIT_GOTO_TABLE code */\r
+    public static final byte GOTO_TABLE_TYPE = 1;\r
+    /** Openflow v1.3 OFPIT_WRITE_METADATA code */\r
+    public static final byte WRITE_METADATA_TYPE = 2;\r
+    /** Openflow v1.3 OFPIT_WRITE_ACTIONS code */\r
+    public static final byte WRITE_ACTIONS_TYPE = 3;\r
+    /** Openflow v1.3 OFPIT_APPLY_ACTIONS code */\r
+    public static final byte APPLY_ACTIONS_TYPE = 4;\r
+    /** Openflow v1.3 OFPIT_CLEAR_ACTIONS code */\r
+    public static final byte CLEAR_ACTIONS_TYPE = 5;\r
+    /** Openflow v1.3 OFPIT_METER code */\r
+    public static final byte METER_TYPE = 6;\r
+\r
+    /** PADDING in OFPIT_GOTO_TABLE */\r
+    public static final byte PADDING_IN_GOTO_TABLE = 3;\r
+    /** PADDING in OFPIT_WRITE_METADATA */\r
+    public static final byte PADDING_IN_WRITE_METADATA = 4;\r
+    /** PADDING in OFPIT_WRITE_ACTIONS, OFPIT_APPLY_ACTIONS\r
+     *  and OFPIT_CLEAR_ACTIONS */\r
+    public static final byte PADDING_IN_ACTIONS_INSTRUCTION = 4;\r
+\r
+    /** Openflow v1.3 header length (padded) */\r
+    public static final byte STANDARD_INSTRUCTION_LENGTH = 8;\r
+    /** Openflow v1.3 OFPIT_WRITE_METADATA length */\r
+    public static final byte WRITE_METADATA_LENGTH = 24;\r
+    /** Openflow v1.3 header length (only type and length fields) */\r
+    public static final byte INSTRUCTION_IDS_LENGTH = 4;\r
+}\r