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);
33 private final String tableName;
34 private final String parentTableName;
35 private final String columnNameInParentTable;
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;
44 public String getTableName() {
45 return this.tableName;
48 public String getParentTableName() {
49 return this.parentTableName;
52 public String getColumnNameInParentTable() {
53 return this.columnNameInParentTable;