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.vpnservice.elan.utils;
10 import java.math.BigInteger;
12 public class ElanConstants {
14 public static final String ELAN_ID_POOL_NAME = "elan.ids.pool";
15 public static final long ELAN_ID_LOW_VALUE = 5000L;
16 public static final long ELAN_ID_HIGH_VALUE = 10000L;
17 public static final int ELAN_GID_MIN = 200000;
18 public static final short ELAN_SMAC_TABLE = 50;
19 public static final short ELAN_DMAC_TABLE = 51;
20 public static final short ELAN_UNKNOWN_DMAC_TABLE = 52;
21 public static final short ELAN_SERVICE_INDEX = 3;
22 public static final int ELAN_SERVICE_PRIORITY = 5;
23 public static final int STATIC_MAC_TIMEOUT = 0;
24 public static final long DELAY_TIME_IN_MILLISECOND = 5000;
25 public static final BigInteger INVALID_DPN = BigInteger.valueOf(-1);
26 public static final BigInteger COOKIE_ELAN_UNKNOWN_DMAC = new BigInteger("8700000", 16);
27 public static final BigInteger COOKIE_ELAN_KNOWN_SMAC = new BigInteger("8050000", 16);
28 public static final BigInteger COOKIE_ELAN_KNOWN_DMAC = new BigInteger("8030000", 16);
29 public static final BigInteger COOKIE_ELAN_INGRESS_TABLE = new BigInteger("8040000", 16);
30 public static final long DEFAULT_MAC_TIME_OUT = 30;
31 public static final short ELAN_FILTER_EQUALS_TABLE = 55;
32 public static final BigInteger COOKIE_ELAN_FILTER_EQUALS = new BigInteger("8800000", 16);
34 public static final String L2GATEWAY_DS_JOB_NAME = "L2GW";
35 public static final String UNKNOWN_DMAC = "00:00:00:00:00:00";
36 public static final int JOB_MAX_RETRIES = 3;