5ede8be68e7af83413880a645e861e11f6338403
[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 org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Uri;
12 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.EncapsulationTypeBase;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.EncapsulationTypeVxlanOverIpv4;
15 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId;
16
17 import com.google.common.collect.ImmutableBiMap;
18
19 public class HwvtepSouthboundConstants {
20
21     public static final TopologyId HWVTEP_TOPOLOGY_ID = new TopologyId(new Uri("hwvtep:1"));
22     public static final String HWVTEP_URI_PREFIX = "hwvtep";
23     public static final String PSWITCH_URI_PREFIX = "physicalswitch";
24     public static final Integer DEFAULT_OVSDB_PORT = 6640;
25     public static final String IID_OTHER_CONFIG_KEY = "opendaylight-iid";
26     public static final String UUID = "uuid";
27     public static final ImmutableBiMap<Class<? extends EncapsulationTypeBase>,String> ENCAPS_TYPE_MAP
28     = new ImmutableBiMap.Builder<Class<? extends EncapsulationTypeBase>,String>()
29         .put(EncapsulationTypeVxlanOverIpv4.class,"vxlan_over_ipv4")
30         .build();
31     public static final MacAddress UNKNOWN_DST_MAC = new MacAddress("00:00:00:00:00:00");
32     public static final String UNKNOWN_DST_STRING = "unknown-dst";
33 }