Add Interface Table Columns and Version Info
[ovsdb.git] / schemas / Open_vSwitch / src / main / java / org / opendaylight / ovsdb / schema / openvswitch / Interface.java
1 /*
2  * Copyright (C) 2013 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 package org.opendaylight.ovsdb.schema.openvswitch;
11
12 import java.math.BigInteger;
13 import java.util.Map;
14 import java.util.Set;
15
16 import org.opendaylight.ovsdb.lib.notation.Column;
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="Interface", database="Open_vSwitch")
27 public interface Interface extends TypedBaseTable {
28
29     @TypedColumn(name="name", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
30     public Column<GenericTableSchema, String> getNameColumn();
31     @TypedColumn(name="name", method=MethodType.SETDATA, fromVersion="1.0.0")
32     public void setName(String name);
33     @TypedColumn(name="name", method=MethodType.GETDATA, fromVersion="1.0.0")
34     public String getName();
35
36     @TypedColumn(name="type", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
37     public Column<GenericTableSchema, String> getTypeColumn();
38     @TypedColumn(name="type", method=MethodType.SETDATA, fromVersion="1.0.0")
39     public void setType(String type);
40
41     @TypedColumn(name="options", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
42     public Column<GenericTableSchema, Map<String, String>> getOptionsColumn();
43     @TypedColumn(name="options", method=MethodType.SETDATA, fromVersion="1.0.0")
44     public void setOptions(Map<String, String> options);
45
46     @TypedColumn(name="ingress_policing_rate", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
47     public Column<GenericTableSchema, Set<Integer>> getIngressPolicingRateColumn();
48     @TypedColumn(name="ingress_policing_rate", method=MethodType.SETDATA, fromVersion="1.0.0")
49     public void setIngressPolicingRate(Set<Integer> ingressPolicingRate);
50
51     @TypedColumn(name="ingress_policing_burst", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
52     public Column<GenericTableSchema, Set<Integer>> getIngressPolicingBurstColumn();
53     @TypedColumn(name="ingress_policing_burst", method=MethodType.SETDATA, fromVersion="1.0.0")
54     public void setIngressPolicingBurst(Set<Integer> ingressPolicingBurst);
55
56     @TypedColumn(name="mac_in_use", method=MethodType.GETCOLUMN, fromVersion="7.1.0")
57     public Column<GenericTableSchema,Set<String>> getMacInUseColumn();
58     @TypedColumn(name="mac_in_use", method=MethodType.SETDATA, fromVersion="7.1.0")
59     public void setMacInUse(Set<String> macInUse);
60
61     @TypedColumn(name="mac", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
62     public Column<GenericTableSchema, Set<String>> getMacColumn();
63     @TypedColumn(name="mac", method=MethodType.SETDATA, fromVersion="1.0.0")
64     public void setMac(Set<String> mac);
65
66     @TypedColumn(name="ifindex", method=MethodType.GETCOLUMN, fromVersion="7.2.1")
67     public Column<GenericTableSchema, BigInteger> getIfIndexColumn();
68     @TypedColumn(name="ifindex", method=MethodType.SETDATA, fromVersion="7.2.1")
69     public void setIfIndex(BigInteger ifIndex);
70
71     @TypedColumn(name="external_ids", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
72     public Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
73     @TypedColumn(name="external_ids", method=MethodType.SETDATA, fromVersion="1.0.0")
74     public void setExternalIds(Map<String, String> externalIds);
75
76     @TypedColumn(name="ofport", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
77     public Column<GenericTableSchema, Set<Integer>> getOpenFlowPortColumn();
78     @TypedColumn(name="ofport", method=MethodType.SETDATA, fromVersion="1.0.0")
79     public void setOpenFlowPort(Set<Integer> openFlowPort);
80
81     @TypedColumn(name="ofport_request", method=MethodType.GETCOLUMN, fromVersion="6.2.0")
82     public Column<GenericTableSchema, Set<Integer>> getOpenFlowPortRequestColumn();
83     @TypedColumn(name="ofport_request", method=MethodType.SETDATA, fromVersion="6.2.0")
84     public void setOpenFlowPortRequest(String openFlowPortRequest);
85
86     @TypedColumn(name="bfd", method=MethodType.GETCOLUMN, fromVersion="7.2.0")
87     public Column<GenericTableSchema, Map<String, String>> getBfdColumn();
88     @TypedColumn(name="bfd", method=MethodType.SETDATA, fromVersion="7.2.0")
89     public void setBfd(Map<String, String> bfd);
90
91     @TypedColumn(name="bfd_status", method=MethodType.GETCOLUMN, fromVersion="7.2.0")
92     public Column<GenericTableSchema, Map<String, String>> getBfdStatusColumn();
93     @TypedColumn(name="bfd_status", method=MethodType.SETDATA, fromVersion="7.2.0")
94     public void setBfdStatus(Map<String, String> bfdStatus);
95
96     @TypedColumn(name="monitor", method=MethodType.GETCOLUMN, fromVersion="1.0.0", untilVersion="3.5.0")
97     public Column<GenericTableSchema, String> getMonitorColumn();
98     @TypedColumn(name="monitor", method=MethodType.SETDATA, fromVersion="1.0.0", untilVersion="3.5.0")
99     public void setMonitor(String monitor);
100
101     @TypedColumn(name="cfm_mpid", method=MethodType.GETCOLUMN, fromVersion="4.0.0")
102     public Column<GenericTableSchema, Set<Integer>> getCfmMpidColumn();
103     @TypedColumn(name="cfm_mpid", method=MethodType.SETDATA)
104     public void setCfmMpid(Set<Integer> cfmMpid);
105
106     @TypedColumn(name="cfm_remote_mpid", method=MethodType.GETCOLUMN, fromVersion="4.0.0", untilVersion="5.2.0")
107     public Column<GenericTableSchema, Set<Integer>> getCfmRemoteMpidColumn();
108     @TypedColumn(name="cfm_remote_mpid", method=MethodType.SETDATA, fromVersion="4.0.0", untilVersion="5.2.0")
109     public void setCfmRemoteMpid(Set<Integer> cfmRemoteMpid);
110
111     @TypedColumn(name="cfm_remote_mpids", method=MethodType.GETCOLUMN, fromVersion="6.0.0")
112     public Column<GenericTableSchema, Set<Integer>> getCfmRemoteMpidsColumn();
113     @TypedColumn(name="cfm_remote_mpids", method=MethodType.SETDATA, fromVersion="6.0.0")
114     public void setCfmRemoteMpids(Set<Integer> cfmRemoteMpids);
115
116     @TypedColumn(name="cfm_flap_count", method=MethodType.GETCOLUMN, fromVersion="7.3.0")
117     public Column<GenericTableSchema, Set<Integer>> getCfmFlapCountColumn();
118     @TypedColumn(name="cfm_flap_count", method=MethodType.SETDATA, fromVersion="7.3.0")
119     public void setCfmFlapCount(Set<Integer> cfmFlapCount);
120
121     @TypedColumn(name="cfm_fault", method=MethodType.GETCOLUMN, fromVersion="4.0.0")
122     public Column<GenericTableSchema, Set<Boolean>> getCfmFaultColumn();
123     @TypedColumn(name="cfm_fault", method=MethodType.SETDATA, fromVersion="4.0.0")
124     public void setCfmFault(Set<Boolean> cfmFault);
125
126     @TypedColumn(name="cfm_fault_status", method=MethodType.GETCOLUMN, fromVersion="6.6.0")
127     public Column<GenericTableSchema, Set<String>> getCfmFaultStatusColumn();
128     @TypedColumn(name="cfm_fault_status", method=MethodType.SETDATA, fromVersion="6.6.0")
129     public void setCfmFaultStatus(Set<String> cfmFaultStatus);
130
131     @TypedColumn(name="cfm_remote_opstate", method=MethodType.GETCOLUMN, fromVersion="6.10.0")
132     public Column<GenericTableSchema, Set<String>> getCfmRemoteOpStateColumn();
133     @TypedColumn(name="cfm_remote_opstate", method=MethodType.SETDATA, fromVersion="6.10.0")
134     public void setCfmRemoteOpState(Set<String> cfmRemoteOpState);
135
136     @TypedColumn(name="cfm_health", method=MethodType.GETCOLUMN, fromVersion="6.9.0")
137     public Column<GenericTableSchema, Set<Integer>> getCfmHealthColumn();
138     @TypedColumn(name="cfmHealth", method=MethodType.SETDATA, fromVersion="6.9.0")
139     public void setCfmHealth(Set<Integer> cfmHealth);
140
141     @TypedColumn(name="lacp_current", method=MethodType.GETCOLUMN, fromVersion="3.3.0")
142     public Column<GenericTableSchema, Set<Boolean>> getLacpCurrentColumn();
143     @TypedColumn(name="lacp_current", method=MethodType.SETDATA, fromVersion="3.3.0")
144     public void setLacpCurrent(Set<Boolean> lacpCurrent);
145
146     @TypedColumn(name="other_config", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
147     public Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn();
148     @TypedColumn(name="other_config", method=MethodType.SETDATA, fromVersion="1.0.0")
149     public void setOtherConfig(Map<String, String> otherConfig);
150
151     @TypedColumn(name="statistics", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
152     public Column<GenericTableSchema, Map<String, Integer>> getStatisticsColumn();
153     @TypedColumn(name="statistics", method=MethodType.SETDATA, fromVersion="1.0.0")
154     public void setStatistics(Map<String, Integer> statistics);
155
156     @TypedColumn(name="status", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
157     public Column<GenericTableSchema, Map<String, String>> getStatusColumn();
158     @TypedColumn(name="status", method=MethodType.SETDATA, fromVersion="1.0.0")
159     public void setStatus(Map<String, String> status);
160
161     @TypedColumn(name="admin_state", method=MethodType.GETCOLUMN, fromVersion="1.0.6")
162     public Column<GenericTableSchema, Set<String>> getAdminStateColumn();
163     @TypedColumn(name="admin_state", method=MethodType.SETDATA, fromVersion="1.0.6")
164     public void setAdminState(Set<String> adminState);
165
166     @TypedColumn(name="link_state", method=MethodType.GETCOLUMN, fromVersion="1.0.6")
167     public Column<GenericTableSchema, Map<String, String>> getLinkStateColumn();
168     @TypedColumn(name="link_state", method=MethodType.SETDATA, fromVersion="1.0.6")
169     public void setLinkState(Map<String, String> linkState);
170
171     @TypedColumn(name="link_resets", method=MethodType.GETCOLUMN, fromVersion="6.2.0")
172     public Column<GenericTableSchema, Set<String>> getLinkResetsColumn();
173     @TypedColumn(name="link_resets", method=MethodType.SETDATA, fromVersion="6.2.0")
174     public void setLinkResets(Set<String> linkResets);
175
176     @TypedColumn(name="link_speed", method=MethodType.GETCOLUMN, fromVersion="1.0.6")
177     public Column<GenericTableSchema, Set<Integer>> getLinkSpeedColumn();
178     @TypedColumn(name="link_speed", method=MethodType.SETDATA, fromVersion="1.0.6")
179     public void setLinkSpeed(Set<Integer>linkSpeed);
180
181     @TypedColumn(name="duplex", method=MethodType.GETCOLUMN, fromVersion="1.0.6")
182     public Column<GenericTableSchema, Set<String>> getDuplexColumn();
183     @TypedColumn(name="duplex", method=MethodType.SETDATA, fromVersion="1.0.6")
184     public void setDuplex(Set<Integer> duplex);
185
186     @TypedColumn(name="mtu", method=MethodType.GETCOLUMN, fromVersion="1.0.6")
187     public Column<GenericTableSchema, Set<Integer>> getMtuColumn();
188     @TypedColumn(name="mtu", method=MethodType.SETDATA, fromVersion="1.0.6")
189     public void setMtu(Set<Integer> mtu);
190
191     @TypedColumn(name="error", method=MethodType.GETCOLUMN, fromVersion="7.7.0")
192     public Column<GenericTableSchema, Set<String>> getErrorColumn();
193     @TypedColumn(name="error", method=MethodType.SETDATA, fromVersion="7.7.0")
194     public void setError(Set<String> error);
195
196 }