2 * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
9 package org.opendaylight.openflowjava.protocol.impl.util;
\r
12 * @author michal.polkorab
\r
15 public final class InstructionConstants {
\r
17 /** Openflow v1.3 OFPIT_GOTO_TABLE code */
\r
18 public static final byte GOTO_TABLE_TYPE = 1;
\r
19 /** Openflow v1.3 OFPIT_WRITE_METADATA code */
\r
20 public static final byte WRITE_METADATA_TYPE = 2;
\r
21 /** Openflow v1.3 OFPIT_WRITE_ACTIONS code */
\r
22 public static final byte WRITE_ACTIONS_TYPE = 3;
\r
23 /** Openflow v1.3 OFPIT_APPLY_ACTIONS code */
\r
24 public static final byte APPLY_ACTIONS_TYPE = 4;
\r
25 /** Openflow v1.3 OFPIT_CLEAR_ACTIONS code */
\r
26 public static final byte CLEAR_ACTIONS_TYPE = 5;
\r
27 /** Openflow v1.3 OFPIT_METER code */
\r
28 public static final byte METER_TYPE = 6;
\r
30 /** PADDING in OFPIT_GOTO_TABLE */
\r
31 public static final byte PADDING_IN_GOTO_TABLE = 3;
\r
32 /** PADDING in OFPIT_WRITE_METADATA */
\r
33 public static final byte PADDING_IN_WRITE_METADATA = 4;
\r
34 /** PADDING in OFPIT_WRITE_ACTIONS, OFPIT_APPLY_ACTIONS
\r
35 * and OFPIT_CLEAR_ACTIONS */
\r
36 public static final byte PADDING_IN_ACTIONS_INSTRUCTION = 4;
\r
38 /** Openflow v1.3 header length (padded) */
\r
39 public static final byte STANDARD_INSTRUCTION_LENGTH = 8;
\r
40 /** Openflow v1.3 OFPIT_WRITE_METADATA length */
\r
41 public static final byte WRITE_METADATA_LENGTH = 24;
\r
42 /** Openflow v1.3 header length (only type and length fields) */
\r
43 public static final byte INSTRUCTION_IDS_LENGTH = 4;
\r
45 private InstructionConstants() {
\r
46 throw new UnsupportedOperationException("Utility class shouldn't be instantiated");
\r