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;
10 public class OvsdbSchemaContants {
11 public static final String databaseName = "Open_vSwitch";
13 public enum OvsdbSchemaTables {
14 OPENVSWITCH("Open_vSwitch",null,null),
15 BRIDGE("Bridge", "Open_vSwitch", "bridges"),
16 PORT("Port", "Bridge", "ports"),
17 INTERFACE("Interface", "Port", "interfaces"),
18 SSL("SSL", "Open_vSwitch", "ssl"),
19 IPFIX("IPFIX", "Bridge", "ipfix"),
20 SFLOW("sFlow", "Bridge", "sflow"),
21 FLOWTABLE("Flow_Table", "Bridge", "flow_tables"),
22 QOS("QoS", "Port", "qos"),
23 NETFLOW("NetFlow", "Bridge", "netflow"),
24 MIRROR("Mirror", "Bridge", "mirrors"),
25 MANAGER("Manager", "Open_vSwitch", "manager_options"),
26 CONTROLLER("Controller", "Bridge", "controller"),
27 FLOWSAMPLECOLLECTORSET("Flow_Sample_Collector_Set",null,null),
28 AUTOATTACH("AutoAttach", "Bridge", "auto_attach");
30 private final String tableName;
31 private final String parentTableName;
32 private final String columnNameInParentTable;
35 final String tableName, final String parentTableName,
36 final String columnNameInParentTable) {
37 this.tableName = tableName;
38 this.parentTableName = parentTableName;
39 this.columnNameInParentTable = columnNameInParentTable;
42 public String getTableName() {
43 return this.tableName;
46 public String getParentTableName() {
47 return this.parentTableName;
50 public String getColumnNameInParentTable() {
51 return this.columnNameInParentTable;