Enforce checkstyle in itm-api module
[genius.git] / itm / itm-api / src / main / java / org / opendaylight / genius / itm / globals / ITMConstants.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.itm.globals;
9
10 import java.math.BigInteger;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rev160406.TunnelMonitoringTypeBase;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rev160406.TunnelMonitoringTypeBfd;
13
14 public class ITMConstants {
15     public static final BigInteger COOKIE_ITM = new BigInteger("9000000", 16);
16     public static final BigInteger COOKIE_ITM_EXTERNAL = new BigInteger("9050000", 16);
17
18     public static final String ITM_IDPOOL_NAME = "Itmservices";
19     public static final long ITM_IDPOOL_START = 1L;
20     public static final String ITM_IDPOOL_SIZE = "100000";
21     public static final int LLDP_SERVICE_ID = 0;
22     // Tunnel Monitoring
23     public static final boolean DEFAULT_MONITOR_ENABLED = true;
24     public static final int DEFAULT_MONITOR_INTERVAL = 10000;
25     public static final int BFD_DEFAULT_MONITOR_INTERVAL = 1000;
26     public static final int MIN_MONITOR_INTERVAL = 1000;
27     public static final int MAX_MONITOR_INTERVAL = 30000;
28     public static final String DUMMY_IP_ADDRESS = "0.0.0.0";
29     public static final String TUNNEL_TYPE_VXLAN = "VXLAN";
30     public static final String TUNNEL_TYPE_GRE = "GRE";
31     // FIXME: the following annotation should be removed once the itm-impl
32     // changes the name
33     @SuppressWarnings("checkstyle:ConstantName")
34     public static final String TUNNEL_TYPE_MPLSoGRE = "MPLS_OVER_GRE";
35     public static final String TUNNEL_TYPE_INVALID = "Invalid";
36     public static final String MONITOR_TYPE_LLDP = "LLDP";
37     public static final String MONITOR_TYPE_BFD = "BFD";
38     public static final String DEFAULT_TRANSPORT_ZONE = "default-transport-zone";
39     public static final Class<? extends TunnelMonitoringTypeBase> DEFAULT_MONITOR_PROTOCOL
40             = TunnelMonitoringTypeBfd.class;
41     public static final String ITM_MONIRORING_PARAMS_CACHE_NAME = "ItmMonitoringParamsCache";
42     public static final String TUNNEL_STATE_CACHE_NAME = "ItmTunnelStateCache";
43     // FIXME: the following annotation should be removed once the itm-impl
44     // changes the name
45     @SuppressWarnings("checkstyle:ConstantName")
46     public static final String DPN_TEPs_Info_CACHE_NAME = "ItmDpnTepsInfoCache";
47     public static final String TUNNEL_STATE_UP = "UP";
48     public static final String TUNNEL_STATE_DOWN = "DOWN";
49     public static final String TUNNEL_STATE_UNKNOWN = "UNKNOWN";
50 }