2 * Copyright (c) 2015 - 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
9 package org.opendaylight.netvirt.vpnmanager;
11 import java.math.BigInteger;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.NxmNxReg;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.NxmNxReg3;
15 public interface VpnConstants {
16 String VPN_IDPOOL_NAME = "vpnservices";
17 long VPN_IDPOOL_LOW = 100000L;
18 long VPN_IDPOOL_HIGH = 130000L;
19 short DEFAULT_FLOW_PRIORITY = 10;
20 int DEFAULT_LPORT_DISPATCHER_FLOW_PRIORITY = 1;
21 int VPN_ID_LENGTH = 24;
23 String SEPARATOR = ".";
24 BigInteger COOKIE_L3_BASE = new BigInteger("8000000", 16);
25 String FLOWID_PREFIX = "L3.";
26 long MIN_WAIT_TIME_IN_MILLISECONDS = 10000;
27 long MAX_WAIT_TIME_IN_MILLISECONDS = 180000;
28 long PER_INTERFACE_MAX_WAIT_TIME_IN_MILLISECONDS = 4000;
29 long PER_VPN_INSTANCE_MAX_WAIT_TIME_IN_MILLISECONDS = 90000;
30 long PER_VPN_INSTANCE_OPDATA_MAX_WAIT_TIME_IN_MILLISECONDS = 180000;
31 int ELAN_GID_MIN = 200000;
32 int INVALID_LABEL = 0;
33 String ARP_MONITORING_ENTITY = "arpmonitoring";
35 // An IdPool for Pseudo LPort tags, that is, lportTags that are no related to an interface.
36 // These lportTags must be higher than 170000 to avoid collision with interface LportTags and
37 // also VPN related IDs (vrfTags and labels)
38 String PSEUDO_LPORT_TAG_ID_POOL_NAME = System.getProperty("lport.gid.name", "lporttag");
39 long LOWER_PSEUDO_LPORT_TAG = Long.getLong("lower.lport.gid", 170001);
40 long UPPER_PSEUDO_LPORT_TAG = Long.getLong("upper.lport.gid", 270000);
42 enum ITMTunnelLocType {
43 Invalid(0), Internal(1), External(2), Hwvtep(3);
45 private final int type;
47 ITMTunnelLocType(int id) {
51 public int getValue() {
56 enum DCGWPresentStatus {
57 Invalid(0), Present(1), Absent(2);
59 private final int status;
61 DCGWPresentStatus(int id) {
65 public int getValue() {
70 String DEFAULT_GATEWAY_MAC_ADDRESS = "de:ad:be:ef:00:01";
71 Class<? extends NxmNxReg> VPN_REG_ID = NxmNxReg3.class;