2 * Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.ovsdb.southbound;
12 * @author Anil Vishnoi (avishnoi@brocade.com)
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 AUTOATTACH("AutoAttach", "Bridge", "auto_attach");
34 private final String tableName;
35 private final String parentTableName;
36 private final String columnNameInParentTable;
39 final String tableName, final String parentTableName,
40 final String columnNameInParentTable) {
41 this.tableName = tableName;
42 this.parentTableName = parentTableName;
43 this.columnNameInParentTable = columnNameInParentTable;
46 public String getTableName() {
47 return this.tableName;
50 public String getParentTableName() {
51 return this.parentTableName;
54 public String getColumnNameInParentTable() {
55 return this.columnNameInParentTable;