Bug 1334 - Change the Typed Classes in Open_vSwitch and hardware_vtep schema
[ovsdb.git] / schemas / Open_vSwitch / src / main / java / org / opendaylight / ovsdb / schema / openvswitch / Bridge.java
1 /*
2  * Copyright (C) 2014 Red Hat, Inc.
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  * Authors : Madhu Venugopal, Dave Tucker
9  */
10
11 package org.opendaylight.ovsdb.schema.openvswitch;
12 import java.util.Map;
13 import java.util.Set;
14
15 import org.opendaylight.ovsdb.lib.notation.Column;
16 import org.opendaylight.ovsdb.lib.notation.UUID;
17 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
18 import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
19 import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
20 import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
21 import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
22
23 /**
24  * This class is a typed interface to the Bridge Table
25  */
26 @TypedTable(name="Bridge", database="Open_vSwitch", fromVersion="1.0.0")
27 public interface Bridge extends TypedBaseTable<GenericTableSchema> {
28
29     @TypedColumn(name="name", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
30     public Column<GenericTableSchema, String> getNameColumn();
31
32     @TypedColumn(name="name", method=MethodType.GETDATA, fromVersion="1.0.0")
33     public String getName();
34
35     @TypedColumn(name="name", method=MethodType.SETDATA, fromVersion="1.0.0")
36     public void setName(String name);
37
38     @TypedColumn(name="datapath_type", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
39     public Column<GenericTableSchema, String> getDatapathTypeColumn();
40
41     @TypedColumn(name="datapath_type", method=MethodType.SETDATA, fromVersion="1.0.0")
42     public void setDatapathType(String datapathType);
43
44     @TypedColumn(name="datapath_id", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
45     public Column<GenericTableSchema, Set<String>> getDatapathIdColumn();
46
47     @TypedColumn(name="datapath_id", method=MethodType.SETDATA, fromVersion="1.0.0")
48     public void setDatapathId(Set<String> datapathId);
49
50     @TypedColumn(name="stp_enable", method=MethodType.GETCOLUMN, fromVersion="6.2.0")
51     public Column<GenericTableSchema, Boolean> getStpEnableColumn();
52
53     @TypedColumn(name="stp_enable", method=MethodType.SETDATA, fromVersion="6.2.0")
54     public void setStpEnable(Boolean stp_enable);
55
56     @TypedColumn(name="ports", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
57     public Column<GenericTableSchema, Set<UUID>> getPortsColumn();
58
59     @TypedColumn(name="ports", method=MethodType.SETDATA, fromVersion="1.0.0")
60     public void setPorts(Set<UUID> ports);
61
62     @TypedColumn(name="mirrors", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
63     public Column<GenericTableSchema, Set<UUID>> getMirrorsColumn();
64
65     @TypedColumn(name="mirrors", method=MethodType.SETDATA, fromVersion="1.0.0")
66     public void setMirrors(Set<UUID> mirrors);
67
68     @TypedColumn(name="netflow", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
69     public Column<GenericTableSchema, Set<UUID>> getNetflowColumn();
70
71     @TypedColumn(name="netflow", method=MethodType.SETDATA, fromVersion="1.0.0")
72     public void setNetflow(Set<UUID> netflow);
73
74     @TypedColumn(name="sflow", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
75     public Column<GenericTableSchema, Set<UUID>> getSflowColumn();
76
77     @TypedColumn(name="sflow", method=MethodType.SETDATA, fromVersion="1.0.0")
78     public void setSflow(Set<UUID> sflow);
79
80     @TypedColumn(name="ipfix", method=MethodType.GETCOLUMN, fromVersion="7.1.0")
81     public Column<GenericTableSchema, Set<UUID>> getIpfixColumn();
82
83     @TypedColumn(name="ipfix", method=MethodType.SETDATA, fromVersion="7.1.0")
84     public void setIpfix(Set<UUID> ipfix);
85
86     @TypedColumn(name="controller", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
87     public Column<GenericTableSchema, Set<UUID>> getControllerColumn();
88
89     @TypedColumn(name="controller", method=MethodType.SETDATA, fromVersion="1.0.0")
90     public void setController(Set<UUID> controller);
91
92     @TypedColumn(name="protocols", method=MethodType.GETCOLUMN, fromVersion="6.11.1")
93     public Column<GenericTableSchema, Set<String>> getProtocolsColumn();
94
95     @TypedColumn(name="protocols", method=MethodType.SETDATA, fromVersion="6.11.1")
96     public void setProtocols(Set<String> protocols);
97
98     @TypedColumn(name="fail_mode", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
99     public Column<GenericTableSchema, Set<String>> getFailModeColumn();
100
101     @TypedColumn(name="fail_mode", method=MethodType.SETDATA, fromVersion="1.0.0")
102     public void setFailMode(Set<String> failMode);
103
104     @TypedColumn(name="status", method=MethodType.GETCOLUMN, fromVersion="6.2.0")
105     public Column<GenericTableSchema, Map<String, String>> getStatusColumn();
106
107     @TypedColumn(name="status", method=MethodType.SETDATA, fromVersion="6.2.0")
108     public void setStatus(Map<String, String> status);
109
110     @TypedColumn(name="other_config", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
111     public Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn();
112
113     @TypedColumn(name="other_config", method=MethodType.SETDATA, fromVersion="1.0.0")
114     public void setOtherConfig(Map<String, String> otherConfig);
115
116     @TypedColumn(name="external_ids", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
117     public Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
118
119     @TypedColumn(name="external_ids", method=MethodType.SETDATA, fromVersion="1.0.0")
120     public void setExternalIds(Map<String, String> externalIds);
121
122     @TypedColumn(name="flood_vlans", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
123     public Column<GenericTableSchema, Set<Long>> getFloodVlansColumn();
124
125     @TypedColumn(name="flood_vlans", method=MethodType.SETDATA, fromVersion="1.0.0")
126     public void setFloodVlans(Set<Long> vlans);
127
128     @TypedColumn(name="flow_tables", method=MethodType.GETCOLUMN, fromVersion="6.5.0")
129     public Column<GenericTableSchema, Map<Long, UUID>> getFlowTablesColumn();
130
131     @TypedColumn(name="flow_tables", method=MethodType.SETDATA, fromVersion="6.5.0")
132     public void setFlowTables(Map<Long, UUID> flowTables);
133
134 }