2 * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowjava.protocol.impl.util;
12 * Instruction constants.
14 * @author michal.polkorab
16 public interface InstructionConstants {
18 /** Openflow v1.3 OFPIT_GOTO_TABLE code. */
19 byte GOTO_TABLE_TYPE = 1;
21 /** Openflow v1.3 OFPIT_WRITE_METADATA code. */
22 byte WRITE_METADATA_TYPE = 2;
24 /** Openflow v1.3 OFPIT_WRITE_ACTIONS code. */
25 byte WRITE_ACTIONS_TYPE = 3;
27 /** Openflow v1.3 OFPIT_APPLY_ACTIONS code. */
28 byte APPLY_ACTIONS_TYPE = 4;
30 /** Openflow v1.3 OFPIT_CLEAR_ACTIONS code. */
31 byte CLEAR_ACTIONS_TYPE = 5;
33 /** Openflow v1.3 OFPIT_METER code. */
36 /** PADDING in OFPIT_GOTO_TABLE. */
37 byte PADDING_IN_GOTO_TABLE = 3;
39 /** PADDING in OFPIT_WRITE_METADATA. */
40 byte PADDING_IN_WRITE_METADATA = 4;
42 /** PADDING in OFPIT_WRITE_ACTIONS, OFPIT_APPLY_ACTIONS and OFPIT_CLEAR_ACTIONS. */
43 byte PADDING_IN_ACTIONS_INSTRUCTION = 4;
45 /** Openflow v1.3 header length (padded). */
46 byte STANDARD_INSTRUCTION_LENGTH = 8;
48 /** Openflow v1.3 OFPIT_WRITE_METADATA length. */
49 byte WRITE_METADATA_LENGTH = 24;
51 /** Openflow v1.3 header length (only type and length fields). */
52 byte INSTRUCTION_IDS_LENGTH = 4;