Bump upstreams for 2022.09 Chlorine
[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     long PORT_OPEN_MAX_DELAY_IN_MINS = 5;
25     String IID_OTHER_CONFIG_KEY = "opendaylight-iid";
26     String UUID = "uuid";
27     ImmutableBiMap<EncapsulationTypeBase, String> ENCAPS_TYPE_MAP =
28         ImmutableBiMap.<EncapsulationTypeBase, String>builder()
29             .put(EncapsulationTypeVxlanOverIpv4.VALUE,"vxlan_over_ipv4")
30             .build();
31     MacAddress UNKNOWN_DST_MAC = new MacAddress("00:00:00:00:00:00");
32     String UNKNOWN_DST_STRING = "unknown-dst";
33     String HWVTEP_URI_PREFIX = "hwvtep";
34     String PSWITCH_URI_PREFIX = "physicalswitch";
35     String LOGICALSWITCH_UUID_PREFIX = "LogicalSwitch_";
36     String LOGICALROUTER_UUID_PREFIX = "LogicalRouter_";
37     String ACL_UUID_PREFIX = "Acl_";
38     ImmutableMap<String,String> SKIP_HWVTEP_TABLE = new ImmutableMap.Builder<String,String>()
39             .put("Logical_Binding_Stats", "Update callback registration for Logical_Binding_Stats Table is skipped")
40             .build();
41     String VERSION_COLUMN = "_version";
42     ImmutableMap<String, List<String>> SKIP_COLUMN_FROM_HWVTEP_TABLE = new ImmutableMap.Builder<String, List<String>>()
43             .put("Manager", Arrays.asList(VERSION_COLUMN, "status")).build();
44     int WAITING_QUEUE_CAPACITY = Integer.getInteger("hwvtep.wait.queue.capacity", 1000);
45     long WAITING_JOB_EXPIRY_TIME_MILLIS = Integer.getInteger(
46             "hwvtep.wait.job.expiry.time.millis", 90000);
47     int STALE_HWVTEP_CLEANUP_DELAY_SECS = Integer.getInteger("stale.hwvtep.node.cleanup.delay.secs", 240);
48     int HWVTEP_REGISTER_CALLBACKS_WAIT_TIMEOUT = 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     int CHAIN_RETRY_COUNT = 10;
57     long LS_REMOVE_DELAY_SECS = 5;
58     int LS_REMOVE_RETRIES = 10;
59
60 }