Step 2: Migrate termination point stuff under the same transact as bridge stuff.
[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         private OVSDBSCHEMATABLES(final String tableName, final String parentTableName,
38                                   final String columnNameInParentTable) {
39             this.tableName = tableName;
40             this.parentTableName = parentTableName;
41             this.columnNameInParentTable = columnNameInParentTable;
42         }
43
44         public String getTableName() {
45             return this.tableName;
46         }
47
48         public String getParentTableName() {
49             return this.parentTableName;
50         }
51
52         public String getColumnNameInParentTable() {
53             return this.columnNameInParentTable;
54         }
55     }
56
57 }