l3 support (partial): move event dispatch from southBoundHandler
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / Constants.java
1 /*
2  * Copyright (C) 2014 Red Hat, Inc.
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  * Authors : Dave Tucker
9  */
10 package org.opendaylight.ovsdb.openstack.netvirt.api;
11
12 import org.opendaylight.ovsdb.lib.notation.Version;
13
14 /**
15  * A collection of configuration constants
16  */
17 public final class Constants {
18
19     /*
20      * External ID's used by OpenStack Neutron
21      */
22     public static final String EXTERNAL_ID_VM_ID = "vm-id";
23     public static final String EXTERNAL_ID_INTERFACE_ID = "iface-id";
24     public static final String EXTERNAL_ID_VM_MAC = "attached-mac";
25
26     /*
27      * @see http://docs.openstack.org/grizzly/openstack-network/admin/content/ovs_quantum_plugin.html
28      */
29     public static final String TUNNEL_ENDPOINT_KEY = "local_ip";
30     public static final String INTEGRATION_BRIDGE = "br-int";
31     public static final String NETWORK_BRIDGE = "br-net";
32     public static final String EXTERNAL_BRIDGE = "br-ex";
33     public static final String PATCH_PORT_TO_INTEGRATION_BRIDGE_NAME = "patch-int";
34     public static final String PATCH_PORT_TO_NETWORK_BRIDGE_NAME = "patch-net";
35     public static final String PROVIDER_MAPPINGS_KEY = "provider_mappings";
36     public static final String PROVIDER_MAPPING = "physnet1:eth1";
37
38     /*
39      * Flow Priority Defaults
40      */
41     public static final int LLDP_PRIORITY = 1000;
42     public static final int NORMAL_PRIORITY = 0;
43
44     /*
45      * OpenFlow Versions
46      */
47     public static final String OPENFLOW10 = "OpenFlow10";
48     public static final String OPENFLOW13 = "OpenFlow13";
49     public static final Version OPENFLOW13_SUPPORTED = Version.fromString("1.10.0");
50
51     /*
52      * VLAN Constants
53      */
54     public static final int MAX_VLAN = 4094;
55
56     /*
57      * OSGi Service Properties
58      */
59     public static final String SOUTHBOUND_PROTOCOL_PROPERTY = "southboundProtocol";
60     public static final String PROVIDER_TYPE_PROPERTY = "providerType";
61     public static final String OPENFLOW_VERSION_PROPERTY = "openflowVersion";
62     public static final String EVENT_HANDLER_TYPE_PROPERTY = "eventHandlerType";
63 }