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