Initial implementation for hwvtepsouthbound
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / java / org / opendaylight / ovsdb / hwvtepsouthbound / HwvtepSchemaConstants.java
1 /*
2  * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.ovsdb.hwvtepsouthbound;
10
11 public class HwvtepSchemaConstants {
12     public static final String databaseName = "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");
34
35         private final String tableName;
36         private final String parentTableName;
37         private final String columnNameInParentTable;
38
39         private HWVTEPSCHEMATABLES(final String tableName, final String parentTableName,
40                                   final String columnNameInParentTable) {
41             this.tableName = tableName;
42             this.parentTableName = parentTableName;
43             this.columnNameInParentTable = columnNameInParentTable;
44         }
45
46         public String getTableName() {
47             return this.tableName;
48         }
49
50         public String getParentTableName() {
51             return this.parentTableName;
52         }
53
54         public String getColumnNameInParentTable() {
55             return this.columnNameInParentTable;
56         }
57     }
58
59 }