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 * @author michal.polkorab
15 public final class InstructionConstants {
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;
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;
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;
45 private InstructionConstants() {
46 throw new UnsupportedOperationException("Utility class shouldn't be instantiated");