Mass replace CRLF->LF
[openflowjava.git] / 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  * @author michal.polkorab
13  *
14  */
15 public final class InstructionConstants {
16
17     /** Openflow v1.3 OFPIT_GOTO_TABLE code */
18     public static final byte GOTO_TABLE_TYPE = 1;
19     /** Openflow v1.3 OFPIT_WRITE_METADATA code */
20     public static final byte WRITE_METADATA_TYPE = 2;
21     /** Openflow v1.3 OFPIT_WRITE_ACTIONS code */
22     public static final byte WRITE_ACTIONS_TYPE = 3;
23     /** Openflow v1.3 OFPIT_APPLY_ACTIONS code */
24     public static final byte APPLY_ACTIONS_TYPE = 4;
25     /** Openflow v1.3 OFPIT_CLEAR_ACTIONS code */
26     public static final byte CLEAR_ACTIONS_TYPE = 5;
27     /** Openflow v1.3 OFPIT_METER code */
28     public static final byte METER_TYPE = 6;
29
30     /** PADDING in OFPIT_GOTO_TABLE */
31     public static final byte PADDING_IN_GOTO_TABLE = 3;
32     /** PADDING in OFPIT_WRITE_METADATA */
33     public static final byte PADDING_IN_WRITE_METADATA = 4;
34     /** PADDING in OFPIT_WRITE_ACTIONS, OFPIT_APPLY_ACTIONS
35      *  and OFPIT_CLEAR_ACTIONS */
36     public static final byte PADDING_IN_ACTIONS_INSTRUCTION = 4;
37
38     /** Openflow v1.3 header length (padded) */
39     public static final byte STANDARD_INSTRUCTION_LENGTH = 8;
40     /** Openflow v1.3 OFPIT_WRITE_METADATA length */
41     public static final byte WRITE_METADATA_LENGTH = 24;
42     /** Openflow v1.3 header length (only type and length fields) */
43     public static final byte INSTRUCTION_IDS_LENGTH = 4;
44
45     private InstructionConstants() {
46         throw new UnsupportedOperationException("Utility class shouldn't be instantiated");
47     }
48 }