bug 6579 added dependency queue
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / java / org / opendaylight / ovsdb / hwvtepsouthbound / HwvtepSouthboundConstants.java
1 /*
2  * Copyright (c) 2015 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 java.util.Arrays;
12 import java.util.List;
13
14 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri;
15 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.EncapsulationTypeBase;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.EncapsulationTypeVxlanOverIpv4;
18 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId;
19
20 import com.google.common.collect.ImmutableBiMap;
21 import com.google.common.collect.ImmutableMap;
22
23 public class HwvtepSouthboundConstants {
24
25     public static final TopologyId HWVTEP_TOPOLOGY_ID = new TopologyId(new Uri("hwvtep:1"));
26     public static final Integer DEFAULT_OVSDB_PORT = 6640;
27     public static final String IID_OTHER_CONFIG_KEY = "opendaylight-iid";
28     public static final String UUID = "uuid";
29     public static final ImmutableBiMap<Class<? extends EncapsulationTypeBase>,String> ENCAPS_TYPE_MAP
30     = new ImmutableBiMap.Builder<Class<? extends EncapsulationTypeBase>,String>()
31         .put(EncapsulationTypeVxlanOverIpv4.class,"vxlan_over_ipv4")
32         .build();
33     public static final MacAddress UNKNOWN_DST_MAC = new MacAddress("00:00:00:00:00:00");
34     public static final String UNKNOWN_DST_STRING = "unknown-dst";
35     public static final String HWVTEP_URI_PREFIX = "hwvtep";
36     public static final String PSWITCH_URI_PREFIX = "physicalswitch";
37     public static final String LOGICALSWITCH_UUID_PREFIX = "LogicalSwitch_";
38     public static final ImmutableMap<String,String> SKIP_HWVTEP_TABLE
39             = new ImmutableMap.Builder<String,String>()
40             .put("Logical_Binding_Stats", "Update callback registration for Logical_Binding_Stats Table is skipped")
41             .build();
42
43     public static final ImmutableMap<String,List<String>> SKIP_COLUMN_FROM_HWVTEP_TABLE
44             = new ImmutableMap.Builder<String,List<String>>()
45             .put("Manager", Arrays.asList(new String[]{"_version", "status"}))
46             .build();
47     public static final int WAITING_QUEUE_CAPACITY = 1000;
48     public static final long WAITING_JOB_EXPIRY_TIME_MILLIS = 90000;
49 }