restructure and base modules for different features
[vpnservice.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / vpnservice / mdsalutil / NwConstants.java
1 /*
2  * Copyright (c) 2013 Ericsson AB.  All rights reserved.
3  *
4  */
5 package org.opendaylight.vpnservice.mdsalutil;
6
7 public class NwConstants {
8
9     // EthType Values
10     public static final int ETHTYPE_802_1Q            = 0X8100;
11     public static final int ETHTYPE_IPV4              = 0X0800;
12     public static final int ETHTYPE_ARP               = 0X0806;
13
14     public static final int ETHTYPE_MPLS_UC           = 0X8847;
15     public static final int ETHTYPE_PBB               = 0X88E7;
16     
17     //Protocol Type
18     public static final int IP_PROT_UDP = 17;
19     public static final int IP_PROT_GRE = 47;
20
21     //Default Port
22     public static final int UDP_DEFAULT_PORT = 4789;
23
24     // Table IDs
25     public static final short PRECHECK_TABLE          = 0;
26     public static final short PORT_VLAN_TABLE         = 0;
27
28     // Table Max Entries
29     public static final long INGRESS_TABLE_MAX_ENTRY  = 1000;
30     public static final long PRECHECK_TABLE_MAX_ENTRY = 100;
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     // Misc FIXME: Find new place for this
43     public static final String DPN_STATE_CACHE = "dpn.state.cache";
44     public static final String DPN_SYNCSTATUS_CACHE = "dpn.resync.status.cache";
45     public static final String STATISTICS_LOCK_PREFIX ="scf.statistics.lock";
46     public static final String STATISTICS_LOCK_SEPARATOR =".";
47     public static final int STATISTICS_LOCK_RETRY_COUNT =1800;
48 }