Added more ignorable files to .gitignore
[ovsdb.git] / ovsdb / src / main / java / org / opendaylight / ovsdb / lib / table / Bridge.java
1 /*
2  * [[ Authors will Fill in the Copyright header ]]
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 : Brent Salisbury, Madhu Venugopal, Evan Zeller
9  */
10 package org.opendaylight.ovsdb.lib.table;
11
12 import org.opendaylight.ovsdb.lib.notation.OvsDBMap;
13 import org.opendaylight.ovsdb.lib.notation.OvsDBSet;
14 import org.opendaylight.ovsdb.lib.notation.UUID;
15 import org.opendaylight.ovsdb.lib.table.internal.Table;
16
17 import com.fasterxml.jackson.annotation.JsonIgnore;
18
19 public class Bridge extends Table<Bridge> {
20     public static final Name<Bridge> NAME = new Name<Bridge>("Bridge"){};
21     public enum Column implements org.opendaylight.ovsdb.lib.table.internal.Column<Bridge>{controller, fail_mode, name, ports}
22
23     private String name;
24     private OvsDBSet<UUID> ports;
25     private OvsDBSet<UUID> mirrors;
26     private OvsDBSet<UUID> controller;
27     private OvsDBSet<String> datapath_id;
28     private String datapath_type;
29     private OvsDBSet<String> fail_mode;
30     private OvsDBSet<UUID> sflow;
31     private OvsDBSet<UUID> netflow;
32     private OvsDBSet<String> protocols;
33     private OvsDBMap<String, String> status;
34     private Boolean stp_enable;
35     private OvsDBMap<String, String> other_config;
36     private OvsDBMap<String, String> external_ids;
37
38     public Bridge() {
39     }
40
41     @Override
42     @JsonIgnore
43     public Name<Bridge> getTableName() {
44         return NAME;
45     }
46
47
48     public String getName() {
49         return name;
50     }
51
52     public void setName(String name) {
53         this.name = name;
54     }
55
56     public OvsDBSet<UUID> getPorts() {
57         return ports;
58     }
59
60     public void setPorts(OvsDBSet<UUID> ports) {
61         this.ports = ports;
62     }
63
64     public OvsDBSet<UUID> getMirrors() {
65         return mirrors;
66     }
67
68     public void setMirrors(OvsDBSet<UUID> mirrors) {
69         this.mirrors = mirrors;
70     }
71
72     public OvsDBSet<UUID> getController() {
73         return controller;
74     }
75
76     public void setController(OvsDBSet<UUID> controller) {
77         this.controller = controller;
78     }
79
80     public OvsDBSet<String> getDatapath_id() {
81         return datapath_id;
82     }
83
84     public void setDatapath_id(OvsDBSet<String> datapath_id) {
85         this.datapath_id = datapath_id;
86     }
87
88     public String getDatapath_type() {
89         return datapath_type;
90     }
91
92     public void setDatapath_type(String datapath_type) {
93         this.datapath_type = datapath_type;
94     }
95
96     public OvsDBSet<String> getFail_mode() {
97         return fail_mode;
98     }
99
100     public void setFail_mode(OvsDBSet<String> fail_mode) {
101         this.fail_mode = fail_mode;
102     }
103
104     public void setFlow(OvsDBSet<UUID> sflow){
105         this.sflow = sflow;
106     }
107
108     public void setNetflow(OvsDBSet<UUID> netflow){
109         this.netflow = netflow;
110     }
111
112     public OvsDBSet<UUID> getSflow() {
113         return sflow;
114     }
115
116     public OvsDBSet<UUID> getNetflow() {
117         return netflow;
118     }
119
120     public OvsDBMap<String, String> getStatus() {
121         return status;
122     }
123
124     public void setStatus(OvsDBMap<String, String> status) {
125         this.status = status;
126     }
127
128     public Boolean getStp_enable() {
129         return stp_enable;
130     }
131
132     public OvsDBSet<String> getProtocols() {
133         return protocols;
134     }
135
136     public void setProtocols(OvsDBSet<String> protocols) {
137         this.protocols = protocols;
138     }
139
140     public void setStp_enable(Boolean stp_enable) {
141         this.stp_enable = stp_enable;
142     }
143
144     public OvsDBMap<String, String> getOther_config() {
145         return other_config;
146     }
147
148     public void setOther_config(OvsDBMap<String, String> other_config) {
149         this.other_config = other_config;
150     }
151
152     public OvsDBMap<String, String> getExternal_ids() {
153         return external_ids;
154     }
155
156     public void setExternal_ids(OvsDBMap<String, String> external_ids) {
157         this.external_ids = external_ids;
158     }
159
160     @Override
161     public String toString() {
162         return "Bridge [name=" + name + ", ports=" + ports + ", controller="
163                 + controller + ", datapath_id=" + datapath_id
164                 + ", datapath_type=" + datapath_type + ", fail_mode="
165                 + fail_mode + ", status=" + status + ", stp_enable="
166                 + stp_enable + ", other_config=" + other_config
167                 + ", external_ids=" + external_ids + "]";
168     }
169 }