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