2 * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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
9 package org.opendaylight.ovsdb.hwvtepsouthbound;
11 public class HwvtepSchemaConstants {
12 public static final String HARDWARE_VTEP = "hardware_vtep";
13 public enum HWVTEPSCHEMATABLES {
14 GLOBAL("Global", null, null),
15 MANAGER("Manager","Global","managers"),
16 PHYSICALSWITCH("Physical_Switch","Global","switches"),
17 PHYSICALPORT("Physical_Port","Physical_Switch","ports"),
18 TUNNEL("Tunnel","Physical_Switch","tunnels"),
19 LOGICALSWITCH("Logical_Switch","Physical_Port","vlan_bindings"),
20 ACL("ACL","Physical_Port","acl_bindings"),
21 LOGICALBINDINGSTATS("Logical_Binding_Stats","Physical_Port","vlan_stats"),
22 // PHYSICALLOCATORLOCAL("Physical_Locator","Tunnel","local"),
23 // PHYSICALLOCATORREMOTE("Physical_Locator","Tunnel","remote"),
24 UCASTMACSLOCAL("Ucast_Macs_Local",null, null),
25 UCASTMACSREMOTE("Ucast_Macs_Remote",null, null),
26 MCASTMACSLOCAL("Mcast_Macs_Local",null, null),
27 PHYSICALLOCATORSET("Physical_Locator_Set","Mcast_Macs_Local", "locator_set"),
28 MCASTMACSREMOTE("Mcast_Macs_Remote",null, null),
29 LOGICALROUTER("Logical_Router",null, null),
30 ARPSOURCESLOCAL("Arp_Sources_Local",null, null),
31 ARPSOURCESREMOTE("Arp_Sources_Remote",null, null),
32 PHYSICALLOCATOR("Physical_Locator","Physical_Locator_Set", "locators"),
33 ACLENTRY("Acl_Entry","ACL", "acl_entries");
35 private final String tableName;
36 private final String parentTableName;
37 private final String columnNameInParentTable;
40 final String tableName, final String parentTableName,
41 final String columnNameInParentTable) {
42 this.tableName = tableName;
43 this.parentTableName = parentTableName;
44 this.columnNameInParentTable = columnNameInParentTable;
47 public String getTableName() {
48 return this.tableName;
51 public String getParentTableName() {
52 return this.parentTableName;
55 public String getColumnNameInParentTable() {
56 return this.columnNameInParentTable;