Handle EOS Timeout for the Hwvtep Node addition.
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / java / org / opendaylight / ovsdb / hwvtepsouthbound / HwvtepSouthboundConstants.java
1 /*
2  * Copyright © 2015, 2017 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
9 package org.opendaylight.ovsdb.hwvtepsouthbound;
10
11 import com.google.common.collect.ImmutableBiMap;
12 import com.google.common.collect.ImmutableMap;
13 import java.util.Arrays;
14 import java.util.List;
15 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri;
16 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.EncapsulationTypeBase;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.EncapsulationTypeVxlanOverIpv4;
19 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId;
20
21 public interface HwvtepSouthboundConstants {
22     TopologyId HWVTEP_TOPOLOGY_ID = new TopologyId(new Uri("hwvtep:1"));
23     Integer DEFAULT_OVSDB_PORT = 6640;
24     String IID_OTHER_CONFIG_KEY = "opendaylight-iid";
25     String UUID = "uuid";
26     ImmutableBiMap<Class<? extends EncapsulationTypeBase>,String> ENCAPS_TYPE_MAP
27         = new ImmutableBiMap.Builder<Class<? extends EncapsulationTypeBase>,String>()
28             .put(EncapsulationTypeVxlanOverIpv4.class,"vxlan_over_ipv4").build();
29     MacAddress UNKNOWN_DST_MAC = new MacAddress("00:00:00:00:00:00");
30     String UNKNOWN_DST_STRING = "unknown-dst";
31     String HWVTEP_URI_PREFIX = "hwvtep";
32     String PSWITCH_URI_PREFIX = "physicalswitch";
33     String LOGICALSWITCH_UUID_PREFIX = "LogicalSwitch_";
34     String LOGICALROUTER_UUID_PREFIX = "LogicalRouter_";
35     String ACL_UUID_PREFIX = "Acl_";
36     ImmutableMap<String,String> SKIP_HWVTEP_TABLE = new ImmutableMap.Builder<String,String>()
37             .put("Logical_Binding_Stats", "Update callback registration for Logical_Binding_Stats Table is skipped")
38             .build();
39     String VERSION_COLUMN = "_version";
40     ImmutableMap<String, List<String>> SKIP_COLUMN_FROM_HWVTEP_TABLE = new ImmutableMap.Builder<String, List<String>>()
41             .put("Manager", Arrays.asList(VERSION_COLUMN, "status")).build();
42     int WAITING_QUEUE_CAPACITY = Integer.getInteger("hwvtep.wait.queue.capacity", 1000);
43     long WAITING_JOB_EXPIRY_TIME_MILLIS = Integer.getInteger(
44             "hwvtep.wait.job.expiry.time.millis", 90000);
45     Integer STALE_HWVTEP_CLEANUP_DELAY_SECS
46             = Integer.getInteger("stale.hwvtep.node.cleanup.delay.secs", 240);
47     Integer HWVTEP_REGISTER_CALLBACKS_WAIT_TIMEOUT
48             = Integer.getInteger("hwvtep.max.oper.wait.time.secs", 10);
49     long IN_TRANSIT_STATE_EXPIRY_TIME_MILLIS = Integer.getInteger(
50             "hwvtep.intransit.job.expiry.time.millis", 10000);
51     long IN_TRANSIT_STATE_CHECK_PERIOD_MILLIS = Integer.getInteger(
52             "hwvtep.intransit.job.check.period.millis", 30000);
53     long CONFIG_NODE_UPDATE_MAX_DELAY_MS = Integer.getInteger(
54             "config.node.update.max.delay.ms", 10000);
55     int EOS_TIMEOUT = Integer.getInteger("hwvtep.eos.timeout.delay.secs", 240);
56
57 }