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 {
12 public static final String DATABASE_NAME = "Open_vSwitch";
13 private static final String BRIDGE_NAME = "Bridge";
15 private OvsdbSchemaContants() { }
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");
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;