Bump versions by 0.1.0 for next dev cycle
[vpnservice.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / vpnservice / mdsalutil / NwConstants.java
1 /*
2  * Copyright (c) 2015 - 2016 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
9
10 public class NwConstants {
11
12     // EthType Values
13     public static final int ETHTYPE_802_1Q            = 0X8100;
14     public static final int ETHTYPE_IPV4              = 0X0800;
15     public static final int ETHTYPE_ARP               = 0X0806;
16
17     public static final int ETHTYPE_MPLS_UC           = 0X8847;
18     public static final int ETHTYPE_PBB               = 0X88E7;
19
20     //Protocol Type
21     public static final int IP_PROT_UDP = 17;
22     public static final int IP_PROT_GRE = 47;
23
24     //ARP TYPE
25     public static final int ARP_REQUEST = 1;
26     public static final int ARP_REPLY = 2;
27
28     //Default Port
29     public static final int UDP_DEFAULT_PORT = 4789;
30
31
32     // Flow Actions
33     public static final int ADD_FLOW = 0;
34     public static final int DEL_FLOW = 1;
35     public static final int MOD_FLOW = 2;
36
37     // Flow Constants
38     public static final String FLOWID_SEPARATOR = ".";
39     public static final int TABLE_MISS_FLOW = 0;
40     public static final int TABLE_MISS_PRIORITY = 0;
41
42     public static final int DEFAULT_ARP_FLOW_PRIORITY = 100;
43
44     //Table IDs
45     public static final short L3_FIB_TABLE = 21;
46     public static final short L3_LFIB_TABLE = 20;
47     public static final short L3_SUBNET_ROUTE_TABLE=22;
48
49     public static final short L3_PROTOCOL_TABLE = 36;
50     public static final short L3_INTERFACE_TABLE = 80;
51     public static final short LPORT_DISPATCHER_TABLE = 17;
52     public static final short VLAN_INTERFACE_INGRESS_TABLE = 0;
53     public static final short INTERNAL_TUNNEL_TABLE = 36;
54     public static final short EXTERNAL_TUNNEL_TABLE = 38;
55     public static final short DHCP_TABLE = 16;
56     public static final short DHCP_TABLE_EXTERNAL_TUNNEL = 18;
57  }