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
9 package org.opendaylight.netvirt.natservice.internal;
11 import java.math.BigInteger;
14 public interface NatConstants {
16 short DEFAULT_NAPT_FLOW_PRIORITY = 10;
17 String NAPT_FLOW_NAME = "SNAT";
18 BigInteger COOKIE_NAPT_BASE = new BigInteger("8000000", 16);
19 String NAPT_FLOWID_PREFIX = "SNAT.";
20 String FLOWID_SEPARATOR = ".";
21 String COLON_SEPARATOR = ":";
22 int DEFAULT_NAPT_IDLE_TIMEOUT = 300;
23 int EVENT_QUEUE_LENGTH = 1000000;
24 String FLOWID_PREFIX = "L3.";
25 int DEFAULT_DNAT_FLOW_PRIORITY = 10;
27 short SNAT_FIB_FLOW_PRIORITY = 42;
28 short SNAT_TRK_FLOW_PRIORITY = 6;
29 short SNAT_NEW_FLOW_PRIORITY = 5;
30 short DEFAULT_SNAT_FLOW_PRIORITY = 10;
31 short DEFAULT_PSNAT_FLOW_PRIORITY = 5;
32 String SNAT_FLOW_NAME = "SNAT";
33 String SNAT_FLOWID_PREFIX = "SNAT.";
34 String SNAT_IDPOOL_NAME = "snatGroupIdPool";
35 long SNAT_ID_LOW_VALUE = 225000L;
36 long SNAT_ID_HIGH_VALUE = 250000L;
37 String ODL_VNI_POOL_NAME = "opendaylight-vni-ranges";
38 long VNI_DEFAULT_LOW_VALUE = 70000L;
39 long VNI_DEFAULT_HIGH_VALUE = 99999L;
40 int DEFAULT_TS_FLOW_PRIORITY = 10;
41 short DEFAULT_PREFIX = 32;
42 long DEFAULT_L3VNI_VALUE = 0;
43 int DEFAULT_LABEL_VALUE = 0;
44 String DNAT_FLOW_NAME = "DNAT";
45 short DEFAULT_HARD_TIMEOUT = 0;
46 short DEFAULT_IDLE_TIMEOUT = 0;
47 int SNAT_PACKET_THEADPOOL_SIZE = 25;
48 int SNAT_PACKET_RETRY_THEADPOOL_SIZE = 15;
49 String NAT_DJC_PREFIX = "NAT-";
50 int NAT_DJC_MAX_RETRIES = 3;
55 enum ITMTunnelLocType {
56 Invalid(0), Internal(1), External(2), Hwvtep(3);
58 private final int type;
60 ITMTunnelLocType(int id) {
64 public int getValue() {