Fix checkstyle violations in openflow-protocol-impl - part 7
[openflowplugin.git] / openflowjava / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / util / InstructionConstants.java
1 /*
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.openflowjava.protocol.impl.util;
10
11 /**
12  * Instruction constants.
13  *
14  * @author michal.polkorab
15  */
16 public interface InstructionConstants {
17
18     /** Openflow v1.3 OFPIT_GOTO_TABLE code. */
19     byte GOTO_TABLE_TYPE = 1;
20
21     /** Openflow v1.3 OFPIT_WRITE_METADATA code. */
22     byte WRITE_METADATA_TYPE = 2;
23
24     /** Openflow v1.3 OFPIT_WRITE_ACTIONS code. */
25     byte WRITE_ACTIONS_TYPE = 3;
26
27     /** Openflow v1.3 OFPIT_APPLY_ACTIONS code. */
28     byte APPLY_ACTIONS_TYPE = 4;
29
30     /** Openflow v1.3 OFPIT_CLEAR_ACTIONS code. */
31     byte CLEAR_ACTIONS_TYPE = 5;
32
33     /** Openflow v1.3 OFPIT_METER code. */
34     byte METER_TYPE = 6;
35
36     /** PADDING in OFPIT_GOTO_TABLE. */
37     byte PADDING_IN_GOTO_TABLE = 3;
38
39     /** PADDING in OFPIT_WRITE_METADATA. */
40     byte PADDING_IN_WRITE_METADATA = 4;
41
42     /** PADDING in OFPIT_WRITE_ACTIONS, OFPIT_APPLY_ACTIONS and OFPIT_CLEAR_ACTIONS. */
43     byte PADDING_IN_ACTIONS_INSTRUCTION = 4;
44
45     /** Openflow v1.3 header length (padded). */
46     byte STANDARD_INSTRUCTION_LENGTH = 8;
47
48     /** Openflow v1.3 OFPIT_WRITE_METADATA length. */
49     byte WRITE_METADATA_LENGTH = 24;
50
51     /** Openflow v1.3 header length (only type and length fields). */
52     byte INSTRUCTION_IDS_LENGTH = 4;
53 }