2 * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
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
8 package org.opendaylight.genius.itm.globals;
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;
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);
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 int LLDP_SERVICE_ID = 0;
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 public static final String TUNNEL_TYPE_MPLSoGRE = "MPLS_OVER_GRE";
32 public static final String TUNNEL_TYPE_INVALID = "Invalid";
33 public static final String MONITOR_TYPE_LLDP = "LLDP";
34 public static final String MONITOR_TYPE_BFD = "BFD";
35 public static final String DEFAULT_TRANSPORT_ZONE = "default-transport-zone";
36 public static final Class<? extends TunnelMonitoringTypeBase> DEFAULT_MONITOR_PROTOCOL = TunnelMonitoringTypeBfd.class;