Merge "Simplifying the User facing APIs in TyperUtils." into topic/schema
[ovsdb.git] / schemas / Open_vSwitch / src / main / java / org / opendaylight / ovsdb / schema / openvswitch / Port.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.notation.UUID;
18 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
19 import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
20 import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
21 import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
22 import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
23
24 /**
25  * This class is a typed interface to the Port Table
26  */
27 @TypedTable(name="Port", database="Open_vSwitch")
28 public interface Port extends TypedBaseTable {
29
30     @TypedColumn(name="name", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
31     public Column<GenericTableSchema, String> getNameColumn();
32     @TypedColumn(name="name", method=MethodType.SETDATA, fromVersion="1.0.0")
33     public void setName(String name);
34
35     @TypedColumn(name="interfaces", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
36     public Column<GenericTableSchema, Set<UUID>> getInterfacesColumn();
37     @TypedColumn(name="interfaces", method=MethodType.SETDATA, fromVersion="1.0.0")
38     public void setInterfaces(Set<UUID> interfaces);
39
40     @TypedColumn(name="trunks", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
41     public Column<GenericTableSchema, Set<BigInteger>> getTrunksColumn();
42     @TypedColumn(name="trunks", method=MethodType.SETDATA, fromVersion="1.0.0")
43     public void setTrunks(Set<BigInteger> trunks);
44
45     @TypedColumn(name="tag", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
46     public Column<GenericTableSchema, Set<BigInteger>> getTagColumn();
47     @TypedColumn(name="tag", method=MethodType.SETDATA, fromVersion="1.0.0")
48     public void setTag(Set<BigInteger> tag);
49
50     @TypedColumn(name="vlan_mode", method=MethodType.GETCOLUMN, fromVersion="6.1.0")
51     public Column<GenericTableSchema, Set<String>> getVlanModeColumn();
52     @TypedColumn(name="vlan_mode", method=MethodType.SETDATA, fromVersion="6.1.0")
53     public void setVlanMode(Set<String> vlanMode);
54
55     @TypedColumn(name="qos", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
56     public Column<GenericTableSchema, Set<UUID>> getQosColumn();
57     @TypedColumn(name="qos", method=MethodType.SETDATA, fromVersion="1.0.0")
58     public void setQos(Set<UUID> qos);
59
60     @TypedColumn(name="mac", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
61     public Column<GenericTableSchema, Set<String>> getMacColumn();
62     @TypedColumn(name="mac", method=MethodType.SETDATA, fromVersion="1.0.0")
63     public void setMac(Set<String> mac);
64
65     @TypedColumn(name="bond_type", method=MethodType.GETCOLUMN, fromVersion="1.0.2", untilVersion="1.0.3")
66     public Column<GenericTableSchema, Set<String>> getBondTypeColumn();
67     @TypedColumn(name="bond_type", method=MethodType.SETDATA)
68     public void setBondType(Set<String> bond_type);
69
70     @TypedColumn(name="bond_mode", method=MethodType.GETCOLUMN, fromVersion="1.0.4")
71     public Column<GenericTableSchema, Set<String>> getBondModeColumn();
72     @TypedColumn(name="bond_mode", method=MethodType.SETDATA, fromVersion="1.0.4")
73     public void setBondMode(Set<String> bond_mode);
74
75     @TypedColumn(name="lacp", method=MethodType.GETCOLUMN, fromVersion="1.3.0")
76     public Column<GenericTableSchema, Set<String>> getLacpColumn();
77     @TypedColumn(name="lacp", method=MethodType.SETDATA, fromVersion="1.3.0")
78     public void setLacp(Set<String> lacp);
79
80     @TypedColumn(name="bond_updelay", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
81     public Column<GenericTableSchema, Set<BigInteger>> getBondUpDelayColumn();
82     @TypedColumn(name="bond_updelay", method=MethodType.SETDATA, fromVersion="1.0.0")
83     public void setBondUpDelay(Set<BigInteger> bondUpDelay);
84
85     @TypedColumn(name="bond_downdelay", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
86     public Column<GenericTableSchema, Set<BigInteger>> getBondDownDelayColumn();
87     @TypedColumn(name="bond_downdelay", method=MethodType.SETDATA, fromVersion="1.0.0")
88     public void setBondDownDelay(Set<BigInteger> bondDownDelay);
89
90     @TypedColumn(name="bond_fake_iface", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
91     public Column<GenericTableSchema, Set<Boolean>> getBondFakeInterfaceColumn();
92     @TypedColumn(name="bond_fake_iface", method=MethodType.SETDATA, fromVersion="1.0.0")
93     public void setBondFakeInterface(Set<Boolean> bondFakeInterface);
94
95     @TypedColumn(name="fake_bridge", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
96     public Column<GenericTableSchema, Set<Boolean>> getFakeBridgeColumn();
97     @TypedColumn(name="fake_bridge", method=MethodType.SETDATA, fromVersion="1.0.0")
98     public void setFakeBridge(Set<Boolean> fakeBridge);
99
100     @TypedColumn(name="status", method=MethodType.GETCOLUMN, fromVersion="6.2.0")
101     public Column<GenericTableSchema, Map<String, String>> getStatusColumn();
102     @TypedColumn(name="status", method=MethodType.SETDATA, fromVersion="6.2.0")
103     public void setStatus(Map<String, String> status);
104
105     @TypedColumn(name="statistics", method=MethodType.GETCOLUMN, fromVersion="6.3.0")
106     public Column<GenericTableSchema, Map<String, BigInteger>> getStatisticsColumn();
107     @TypedColumn(name="statistics", method=MethodType.SETDATA)
108     public void setStatistics(Map<String, BigInteger> statistics);
109
110     @TypedColumn(name="other_config", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
111     public Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn();
112     @TypedColumn(name="other_config", method=MethodType.SETDATA, fromVersion="1.0.0")
113     public void setOtherConfig(Map<String, String> otherConfig);
114
115     @TypedColumn(name="external_ids", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
116     public Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
117     @TypedColumn(name="external_ids", method=MethodType.SETDATA, fromVersion="1.0.0")
118     public void setExternalIds(Map<String, String> externalIds);
119 }