Merge "Load config system files in etc/opendaylight/karaf"
[genius.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / genius / mdsalutil / NwConstants.java
1 /*
2  * Copyright (c) 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.genius.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_IPV6              = 0x86dd;
16     public static final int ETHTYPE_ARP               = 0X0806;
17
18     public static final int ETHTYPE_MPLS_UC           = 0X8847;
19     public static final int ETHTYPE_PBB               = 0X88E7;
20
21     //Protocol Type
22     public static final int IP_PROT_ICMP = 1;
23     public static final int IP_PROT_TCP = 6;
24     public static final int IP_PROT_UDP = 17;
25     public static final int IP_PROT_GRE = 47;
26
27     //ARP TYPE
28     public static final int ARP_REQUEST = 1;
29     public static final int ARP_REPLY = 2;
30
31     //Default Port
32     public static final int UDP_DEFAULT_PORT = 4789;
33
34
35     // Flow Actions
36     public static final int ADD_FLOW = 0;
37     public static final int DEL_FLOW = 1;
38     public static final int MOD_FLOW = 2;
39
40     // Flow Constants
41     public static final String FLOWID_SEPARATOR = ".";
42     public static final int TABLE_MISS_FLOW = 0;
43     public static final int TABLE_MISS_PRIORITY = 0;
44
45     public static final int DEFAULT_ARP_FLOW_PRIORITY = 100;
46
47     public static final int SCF_SERVICE_INDEX = 1;
48     public static final int L3VPN_SERVICE_INDEX = 2;
49     public static final int ELAN_SERVICE_INDEX = 3;
50     //Table IDs
51     public static final short L3_FIB_TABLE = 21;
52     public static final short L3_LFIB_TABLE = 20;
53     public static final short L3_SUBNET_ROUTE_TABLE=22;
54
55     public static final short L3_PROTOCOL_TABLE = 36;
56     public static final short L3_INTERFACE_TABLE = 80;
57     public static final short LPORT_DISPATCHER_TABLE = 17;
58     public static final short VLAN_INTERFACE_INGRESS_TABLE = 0;
59     public static final short INTERNAL_TUNNEL_TABLE = 36;
60     public static final short EXTERNAL_TUNNEL_TABLE = 38;
61     public static final short DHCP_TABLE = 25;
62     public static final short DHCP_TABLE_EXTERNAL_TUNNEL = 18;
63  }