2 * Copyright © 2015, 2017 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.ovsdb.hwvtepsouthbound;
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;
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";
27 ImmutableBiMap<Class<? extends EncapsulationTypeBase>,String> ENCAPS_TYPE_MAP
28 = new ImmutableBiMap.Builder<Class<? extends EncapsulationTypeBase>,String>()
29 .put(EncapsulationTypeVxlanOverIpv4.class,"vxlan_over_ipv4").build();
30 MacAddress UNKNOWN_DST_MAC = new MacAddress("00:00:00:00:00:00");
31 String UNKNOWN_DST_STRING = "unknown-dst";
32 String HWVTEP_URI_PREFIX = "hwvtep";
33 String PSWITCH_URI_PREFIX = "physicalswitch";
34 String LOGICALSWITCH_UUID_PREFIX = "LogicalSwitch_";
35 String LOGICALROUTER_UUID_PREFIX = "LogicalRouter_";
36 String ACL_UUID_PREFIX = "Acl_";
37 ImmutableMap<String,String> SKIP_HWVTEP_TABLE = new ImmutableMap.Builder<String,String>()
38 .put("Logical_Binding_Stats", "Update callback registration for Logical_Binding_Stats Table is skipped")
40 String VERSION_COLUMN = "_version";
41 ImmutableMap<String, List<String>> SKIP_COLUMN_FROM_HWVTEP_TABLE = new ImmutableMap.Builder<String, List<String>>()
42 .put("Manager", Arrays.asList(VERSION_COLUMN, "status")).build();
43 int WAITING_QUEUE_CAPACITY = Integer.getInteger("hwvtep.wait.queue.capacity", 1000);
44 long WAITING_JOB_EXPIRY_TIME_MILLIS = Integer.getInteger(
45 "hwvtep.wait.job.expiry.time.millis", 90000);
46 int STALE_HWVTEP_CLEANUP_DELAY_SECS = Integer.getInteger("stale.hwvtep.node.cleanup.delay.secs", 240);
47 int HWVTEP_REGISTER_CALLBACKS_WAIT_TIMEOUT = Integer.getInteger("hwvtep.max.oper.wait.time.secs", 10);
48 long IN_TRANSIT_STATE_EXPIRY_TIME_MILLIS = Integer.getInteger(
49 "hwvtep.intransit.job.expiry.time.millis", 10000);
50 long IN_TRANSIT_STATE_CHECK_PERIOD_MILLIS = Integer.getInteger(
51 "hwvtep.intransit.job.check.period.millis", 30000);
52 long CONFIG_NODE_UPDATE_MAX_DELAY_MS = Integer.getInteger(
53 "config.node.update.max.delay.ms", 10000);
54 int EOS_TIMEOUT = Integer.getInteger("hwvtep.eos.timeout.delay.secs", 240);
55 int CHAIN_RETRY_COUNT = 10;
56 long LS_REMOVE_DELAY_SECS = 5;
57 int LS_REMOVE_RETRIES = 10;