Add yang models for bundle messages
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / util / OxmMatchConstants.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 package org.opendaylight.openflowjava.protocol.api.util;
9
10 /**
11  * Stores oxm_match constants.
12  * @author michal.polkorab
13  */
14 public abstract class OxmMatchConstants {
15
16     /** Backward compatibility with NXM */
17     public static final int NXM_0_CLASS = 0x0000;
18     /** Backward compatibility with NXM */
19     public static final int NXM_1_CLASS = 0x0001;
20     /** Basic class for OpenFlow */
21     public static final int OPENFLOW_BASIC_CLASS = 0x8000;
22     /** Experimenter class */
23     public static final int EXPERIMENTER_CLASS = 0xFFFF;
24
25     /** Switch input port */
26     public static final int IN_PORT = 0;
27     /** Switch physical input port */
28     public static final int IN_PHY_PORT = 1;
29     /** Metadata passed between tables */
30     public static final int METADATA = 2;
31     /** Ethernet destination address */
32     public static final int ETH_DST = 3;
33     /** Ethernet source address */
34     public static final int ETH_SRC = 4;
35     /** Ethernet frame type */
36     public static final int ETH_TYPE = 5;
37     /** VLAN id. */
38     public static final int VLAN_VID = 6;
39     /** VLAN priority. */
40     public static final int VLAN_PCP = 7;
41     /** IP DSCP (6 bits in ToS field). */
42     public static final int IP_DSCP = 8;
43     /** IP ECN (2 bits in ToS field). */
44     public static final int IP_ECN = 9;
45     /** IP protocol. */
46     public static final int IP_PROTO = 10;
47     /** IPv4 source address. */
48     public static final int IPV4_SRC = 11;
49     /** IPv4 destination address. */
50     public static final int IPV4_DST = 12;
51     /** TCP source port. */
52     public static final int TCP_SRC = 13;
53     /** TCP destination port. */
54     public static final int TCP_DST = 14;
55     /** UDP source port. */
56     public static final int UDP_SRC = 15;
57     /** UDP destination port. */
58     public static final int UDP_DST = 16;
59     /** SCTP source port. */
60     public static final int SCTP_SRC = 17;
61     /** SCTP destination port. */
62     public static final int SCTP_DST = 18;
63     /** ICMP type. */
64     public static final int ICMPV4_TYPE = 19;
65     /** ICMP code. */
66     public static final int ICMPV4_CODE = 20;
67     /** ARP opcode. */
68     public static final int ARP_OP = 21;
69     /** ARP source IPv4 address. */
70     public static final int ARP_SPA = 22;
71     /** ARP target IPv4 address. */
72     public static final int ARP_TPA = 23;
73     /** ARP source hardware address. */
74     public static final int ARP_SHA = 24;
75     /** ARP target hardware address. */
76     public static final int ARP_THA = 25;
77     /** IPv6 source address. */
78     public static final int IPV6_SRC = 26;
79     /** IPv6 destination address. */
80     public static final int IPV6_DST = 27;
81     /** IPv6 Flow Label */
82     public static final int IPV6_FLABEL = 28;
83     /** ICMPv6 type. */
84     public static final int ICMPV6_TYPE = 29;
85     /** ICMPv6 code. */
86     public static final int ICMPV6_CODE = 30;
87     /** Target address for ND. */
88     public static final int IPV6_ND_TARGET = 31;
89     /** Source link-layer for ND. */
90     public static final int IPV6_ND_SLL = 32;
91     /** Target link-layer for ND. */
92     public static final int IPV6_ND_TLL = 33;
93     /** MPLS label. */
94     public static final int MPLS_LABEL = 34;
95     /** MPLS TC. */
96     public static final int MPLS_TC = 35;
97     /** MPLS BoS bit. */
98     public static final int MPLS_BOS = 36;
99     /** PBB I-SID. */
100     public static final int PBB_ISID = 37;
101     /** Logical Port Metadata. */
102     public static final int TUNNEL_ID = 38;
103     /** IPv6 Extension Header pseudo-field */
104     public static final int IPV6_EXTHDR = 39;
105
106     /**
107      * OFPXMC_NXM_1 class Constants
108      */
109
110     /** NXM IPv4 Tunnel Endpoint Source */
111     public static final int NXM_NX_TUN_IPV4_SRC = 31;
112     /** NXM IPv4 Tunnel Endpoint Destination */
113     public static final int NXM_NX_TUN_IPV4_DST = 32;
114     /** NXM TCP_Flag value */
115     public static final int NXM_NX_TCP_FLAG = 34;
116
117     private OxmMatchConstants() {
118         //not called
119     }
120 }