Merge "BUG 6130 - process only qos and queue creates and updates"
[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 public class OvsdbSchemaContants {
11
12     public static final String DATABASE_NAME = "Open_vSwitch";
13     private static final String BRIDGE_NAME = "Bridge";
14
15     private OvsdbSchemaContants() { }
16
17     public enum OvsdbSchemaTables {
18         OPENVSWITCH(DATABASE_NAME,null,null),
19         BRIDGE(BRIDGE_NAME, DATABASE_NAME, "bridges"),
20         PORT("Port", BRIDGE_NAME, "ports"),
21         INTERFACE("Interface", "Port", "interfaces"),
22         SSL("SSL", DATABASE_NAME, "ssl"),
23         IPFIX("IPFIX", BRIDGE_NAME, "ipfix"),
24         SFLOW("sFlow", BRIDGE_NAME, "sflow"),
25         FLOWTABLE("Flow_Table", BRIDGE_NAME, "flow_tables"),
26         QOS("QoS", "Port", "qos"),
27         NETFLOW("NetFlow", BRIDGE_NAME, "netflow"),
28         MIRROR("Mirror", BRIDGE_NAME, "mirrors"),
29         MANAGER("Manager", DATABASE_NAME, "manager_options"),
30         CONTROLLER("Controller", BRIDGE_NAME, "controller"),
31         FLOWSAMPLECOLLECTORSET("Flow_Sample_Collector_Set",null,null),
32         AUTOATTACH("AutoAttach", BRIDGE_NAME, "auto_attach");
33
34         private final String tableName;
35         private final String parentTableName;
36         private final String columnNameInParentTable;
37
38         OvsdbSchemaTables(
39                 final String tableName, final String parentTableName,
40                 final String columnNameInParentTable) {
41             this.tableName = tableName;
42             this.parentTableName = parentTableName;
43             this.columnNameInParentTable = columnNameInParentTable;
44         }
45
46         public String getTableName() {
47             return this.tableName;
48         }
49
50         public String getParentTableName() {
51             return this.parentTableName;
52         }
53
54         public String getColumnNameInParentTable() {
55             return this.columnNameInParentTable;
56         }
57     }
58
59 }