Merge "BUG 5477: CandidateAlreadyRegisteredException in hwvtep cluster setup"
[ovsdb.git] / southbound / southbound-impl / src / main / java / org / opendaylight / ovsdb / southbound / OvsdbSchemaContants.java
1 /*
2  * Copyright (c) 2015 Brocade Communications Systems, Inc. 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 package org.opendaylight.ovsdb.southbound;
9
10 /**
11  *
12  * @author Anil Vishnoi (avishnoi@brocade.com)
13  *
14  */
15 public class OvsdbSchemaContants {
16     public static final String databaseName = "Open_vSwitch";
17     public enum OVSDBSCHEMATABLES {
18         OPENVSWITCH("Open_vSwitch",null,null),
19         BRIDGE("Bridge", "Open_vSwitch", "bridges"),
20         PORT("Port", "Bridge", "ports"),
21         INTERFACE("Interface", "Port", "interfaces"),
22         SSL("SSL", "Open_vSwitch", "ssl"),
23         IPFIX("IPFIX", "Bridge", "ipfix"),
24         SFLOW("sFlow", "Bridge", "sflow"),
25         FLOWTABLE("Flow_Table", "Bridge", "flow_tables"),
26         QOS("QoS", "Port", "qos"),
27         NETFLOW("NetFlow", "Bridge", "netflow"),
28         MIRROR("Mirror", "Bridge", "mirrors"),
29         MANAGER("Manager", "Open_vSwitch", "manager_options"),
30         CONTROLLER("Controller", "Bridge", "controller"),
31         FLOWSAMPLECOLLECTORSET("Flow_Sample_Collector_Set",null,null);
32
33         private final String tableName;
34         private final String parentTableName;
35         private final String columnNameInParentTable;
36
37         OVSDBSCHEMATABLES(
38                 final String tableName, final String parentTableName,
39                 final String columnNameInParentTable) {
40             this.tableName = tableName;
41             this.parentTableName = parentTableName;
42             this.columnNameInParentTable = columnNameInParentTable;
43         }
44
45         public String getTableName() {
46             return this.tableName;
47         }
48
49         public String getParentTableName() {
50             return this.parentTableName;
51         }
52
53         public String getColumnNameInParentTable() {
54             return this.columnNameInParentTable;
55         }
56     }
57
58 }