]> git.proxmox.com Git - mirror_ovs.git/blame - vswitchd/vswitch.ovsschema
vswitchd: Add OVS version to database, give system info its own columns.
[mirror_ovs.git] / vswitchd / vswitch.ovsschema
CommitLineData
9cb53f26 1{"name": "Open_vSwitch",
d879a707 2 "tables": {
352cd3f4 3 "Open_vSwitch": {
d879a707
BP
4 "columns": {
5 "bridges": {
0d0f05b9
BP
6 "type": {"key": {"type": "uuid",
7 "refTable": "Bridge"},
8 "min": 0, "max": "unlimited"}},
0b1fae1b 9 "managers": {
0b1fae1b 10 "type": {"key": "string", "min": 0, "max": "unlimited"}},
94db5407
BP
11 "manager_options": {
12 "type": {"key": {"type": "uuid",
13 "refTable": "Manager"},
14 "min": 0, "max": "unlimited"}},
d879a707 15 "ssl": {
0d0f05b9
BP
16 "type": {"key": {"type": "uuid",
17 "refTable": "SSL"},
18 "min": 0, "max": 1}},
f5e7ed5d
JP
19 "external_ids": {
20 "type": {"key": "string", "value": "string",
21 "min": 0, "max": "unlimited"}},
b54e22e9 22 "next_cfg": {
b54e22e9
BP
23 "type": "integer"},
24 "cur_cfg": {
c1c9c9c4
BP
25 "type": "integer"},
26 "capabilities": {
27 "type": {"key": "string",
28 "value": {"type": "uuid",
29 "refTable": "Capability"},
018f1525
BP
30 "min": 0, "max": "unlimited"}},
31 "statistics": {
ce887677 32 "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"},
538c6dfa
BP
33 "ephemeral": true},
34 "ovs_version": {
35 "type": {"key": {"type": "string"},
36 "min": 0, "max": 1}},
37 "system_type": {
38 "type": {"key": {"type": "string"},
39 "min": 0, "max": 1}},
40 "system_version": {
41 "type": {"key": {"type": "string"},
42 "min": 0, "max": 1}}},
2b7093cd 43 "maxRows": 1},
c1c9c9c4
BP
44 "Capability": {
45 "columns": {
46 "details": {
47 "type": {"key": "string", "value": "string",
48 "min": 0, "max": "unlimited"}}}},
d879a707 49 "Bridge": {
d879a707
BP
50 "columns": {
51 "name": {
1a9a2e4b
BP
52 "type": "string",
53 "mutable": false},
1a6f1e2a 54 "datapath_type": {
1a6f1e2a 55 "type": "string"},
d879a707 56 "datapath_id": {
093e47f4
BP
57 "type": {"key": "string", "min": 0, "max": 1},
58 "ephemeral": true},
d879a707 59 "ports": {
0d0f05b9
BP
60 "type": {"key": {"type": "uuid",
61 "refTable": "Port"},
62 "min": 0, "max": "unlimited"}},
d879a707 63 "mirrors": {
0d0f05b9
BP
64 "type": {"key": {"type": "uuid",
65 "refTable": "Mirror"},
66 "min": 0, "max": "unlimited"}},
d879a707 67 "netflow": {
0d0f05b9
BP
68 "type": {"key": {"type": "uuid",
69 "refTable": "NetFlow"},
70 "min": 0, "max": 1}},
a4af0040 71 "sflow": {
0d0f05b9
BP
72 "type": {"key": {"type": "uuid",
73 "refTable": "sFlow"},
74 "min": 0, "max": 1}},
d879a707 75 "controller": {
0d0f05b9
BP
76 "type": {"key": {"type": "uuid",
77 "refTable": "Controller"},
76ce9432 78 "min": 0, "max": "unlimited"}},
31681a5d
JP
79 "fail_mode": {
80 "type": {"key": {"type": "string",
81 "enum": ["set", ["standalone", "secure"]]},
82 "min": 0, "max": 1}},
093e47f4 83 "other_config": {
093e47f4 84 "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
457e1eb0 85 "external_ids": {
37e7f427
BP
86 "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
87 "flood_vlans": {
bd76d25d 88 "type": {"key": {"type": "integer",
299a244b 89 "minInteger": 0,
bd76d25d
BP
90 "maxInteger": 4095},
91 "min": 0, "max": 4096}}}},
d879a707 92 "Port": {
d879a707
BP
93 "columns": {
94 "name": {
1a9a2e4b
BP
95 "type": "string",
96 "mutable": false},
d879a707 97 "interfaces": {
0d0f05b9
BP
98 "type": {"key": {"type": "uuid",
99 "refTable": "Interface"},
100 "min": 1, "max": "unlimited"}},
d879a707 101 "trunks": {
bd76d25d
BP
102 "type": {"key": {"type": "integer",
103 "minInteger": 0,
104 "maxInteger": 4095},
105 "min": 0, "max": 4096}},
d879a707 106 "tag": {
bd76d25d
BP
107 "type": {"key": {"type": "integer",
108 "minInteger": 0,
109 "maxInteger": 4095},
110 "min": 0, "max": 1}},
c1c9c9c4
BP
111 "qos": {
112 "type": {"key": {"type": "uuid",
113 "refTable": "QoS"},
114 "min": 0, "max": 1}},
76343538 115 "mac": {
89521e3f 116 "type": {"key": {"type": "string"},
bd76d25d 117 "min": 0, "max": 1}},
76343538 118 "bond_updelay": {
d879a707 119 "type": "integer"},
76343538 120 "bond_downdelay": {
76343538
BP
121 "type": "integer"},
122 "bond_fake_iface": {
c75d1511
BP
123 "type": "boolean"},
124 "fake_bridge": {
457e1eb0 125 "type": "boolean"},
093e47f4 126 "other_config": {
093e47f4 127 "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
457e1eb0 128 "external_ids": {
457e1eb0 129 "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}}}},
d879a707 130 "Interface": {
d879a707
BP
131 "columns": {
132 "name": {
1a9a2e4b
BP
133 "type": "string",
134 "mutable": false},
76343538 135 "type": {
76343538
BP
136 "type": "string"},
137 "options": {
76343538 138 "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
d879a707 139 "ingress_policing_rate": {
bd76d25d
BP
140 "type": {"key": {"type": "integer",
141 "minInteger": 0}}},
d879a707 142 "ingress_policing_burst": {
bd76d25d
BP
143 "type": {"key": {"type": "integer",
144 "minInteger": 0}}},
76343538 145 "mac": {
89521e3f 146 "type": {"key": {"type": "string"},
bd76d25d 147 "min": 0, "max": 1}},
da50fb9c 148 "external_ids": {
da50fb9c
BP
149 "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
150 "ofport": {
c75d1511 151 "type": {"key": "integer", "min": 0, "max": 1},
018f1525 152 "ephemeral": true},
b31bcf60
EJ
153 "monitor": {
154 "type": {
155 "key": {"type": "uuid", "refTable": "Monitor"},
156 "min": 0,
157 "max": 1}},
a3acf0b0
JP
158 "other_config": {
159 "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
018f1525
BP
160 "statistics": {
161 "type": {"key": "string", "value": "integer", "min": 0, "max": "unlimited"},
13008eb3 162 "ephemeral": true},
573c1db9
JP
163 "status": {
164 "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"},
60bb134a 165 "ephemeral": true}}},
b31bcf60
EJ
166 "Monitor": {
167 "columns": {
168 "mpid": {
169 "type" : {
170 "key": { "type": "integer", "minInteger": 1, "maxInteger": 8191}}},
171 "md_name": {
172 "type" : {
173 "key": { "type": "string", "minLength": 1, "maxLength": 43},
174 "min": 0,
175 "max": 1}},
176 "ma_name": {
177 "type" : {
178 "key": { "type": "string", "minLength": 1, "maxLength": 43},
179 "min": 0,
180 "max": 1}},
181 "interval": {
182 "type": {
183 "key": { "type": "integer", "minInteger": 100},
184 "min": 0,
185 "max": 1}},
186 "remote_mps": {
187 "type": {
188 "key": { "type": "uuid", "refTable": "Maintenance_Point"},
189 "min": 0,
190 "max": "unlimited"},
191 "ephemeral": true},
192 "unexpected_remote_mpids": {
193 "type": {
194 "key": { "type": "integer"},
195 "min": 0,
196 "max": "unlimited"},
197 "ephemeral": true},
198 "unexpected_remote_maids": {
199 "type": {
200 "key": "string",
201 "min": 0,
202 "max": "unlimited"},
203 "ephemeral": true},
204 "fault": {
205 "type": {
206 "key": { "type": "boolean"},
207 "min": 0,
208 "max": 1},
209 "ephemeral": true}}},
210 "Maintenance_Point": {
211 "columns": {
212 "mpid": {
213 "type" : {
214 "key": { "type": "integer", "minInteger": 1, "maxInteger": 8191}},
215 "mutable": false},
216 "fault": {
217 "type": {
218 "key": { "type": "boolean"},
219 "min": 0,
220 "max": 1},
221 "ephemeral": true}}},
c1c9c9c4
BP
222 "QoS": {
223 "columns": {
224 "type": {
225 "type": "string"},
226 "queues": {
227 "type": {"key": {"type": "integer",
228 "minInteger": 0,
229 "maxInteger": 4294967295},
230 "value": {"type": "uuid",
231 "refTable": "Queue"},
232 "min": 0, "max": "unlimited"}},
233 "other_config": {
299a244b 234 "type": {"key": "string", "value": "string",
13008eb3
BP
235 "min": 0, "max": "unlimited"}},
236 "external_ids": {
237 "type": {"key": "string", "value": "string",
c1c9c9c4
BP
238 "min": 0, "max": "unlimited"}}}},
239 "Queue": {
240 "columns": {
241 "other_config": {
299a244b 242 "type": {"key": "string", "value": "string",
13008eb3
BP
243 "min": 0, "max": "unlimited"}},
244 "external_ids": {
245 "type": {"key": "string", "value": "string",
c1c9c9c4 246 "min": 0, "max": "unlimited"}}}},
d879a707 247 "Mirror": {
d879a707
BP
248 "columns": {
249 "name": {
d879a707 250 "type": "string"},
939ff267
BP
251 "select_all": {
252 "type": "boolean"
253 },
d879a707 254 "select_src_port": {
0d0f05b9 255 "type": {"key": {"type": "uuid",
7360012b
BP
256 "refTable": "Port",
257 "refType": "weak"},
0d0f05b9 258 "min": 0, "max": "unlimited"}},
d879a707 259 "select_dst_port": {
0d0f05b9 260 "type": {"key": {"type": "uuid",
7360012b
BP
261 "refTable": "Port",
262 "refType": "weak"},
263 "min": 0, "max": "unlimited"}},
d879a707 264 "select_vlan": {
bd76d25d
BP
265 "type": {"key": {"type": "integer",
266 "minInteger": 0,
267 "maxInteger": 4095},
268 "min": 0, "max": 4096}},
d879a707 269 "output_port": {
0d0f05b9 270 "type": {"key": {"type": "uuid",
7360012b
BP
271 "refTable": "Port",
272 "refType": "weak"},
273 "min": 0, "max": 1}},
d879a707 274 "output_vlan": {
bd76d25d
BP
275 "type": {"key": {"type": "integer",
276 "minInteger": 1,
277 "maxInteger": 4095},
13008eb3
BP
278 "min": 0, "max": 1}},
279 "external_ids": {
280 "type": {"key": "string", "value": "string",
281 "min": 0, "max": "unlimited"}}}},
352cd3f4 282 "NetFlow": {
d879a707 283 "columns": {
76343538 284 "targets": {
89521e3f 285 "type": {"key": {"type": "string"},
bd76d25d 286 "min": 1, "max": "unlimited"}},
d879a707 287 "engine_type": {
bd76d25d
BP
288 "type": {"key": {"type": "integer",
289 "minInteger": 0,
290 "maxInteger": 255},
291 "min": 0, "max": 1}},
d879a707 292 "engine_id": {
bd76d25d
BP
293 "type": {"key": {"type": "integer",
294 "minInteger": 0,
295 "maxInteger": 255},
296 "min": 0, "max": 1}},
d879a707 297 "add_id_to_interface": {
76343538
BP
298 "type": "boolean"},
299 "active_timeout": {
bd76d25d 300 "type": {"key": {"type": "integer",
13008eb3
BP
301 "minInteger": -1}}},
302 "external_ids": {
303 "type": {"key": "string", "value": "string",
304 "min": 0, "max": "unlimited"}}}},
a4af0040 305 "sFlow": {
a4af0040
JP
306 "columns": {
307 "targets": {
a4af0040
JP
308 "type": {"key": "string", "min": 1, "max": "unlimited"}},
309 "sampling": {
a4af0040
JP
310 "type": {"key": "integer", "min": 0, "max": 1}},
311 "polling": {
a4af0040
JP
312 "type": {"key": "integer", "min": 0, "max": 1}},
313 "header": {
a4af0040
JP
314 "type": {"key": "integer", "min": 0, "max": 1}},
315 "agent": {
13008eb3
BP
316 "type": {"key": "string", "min": 0, "max": 1}},
317 "external_ids": {
318 "type": {"key": "string", "value": "string",
319 "min": 0, "max": "unlimited"}}}},
d879a707 320 "Controller": {
d879a707
BP
321 "columns": {
322 "target": {
d879a707
BP
323 "type": "string"},
324 "max_backoff": {
bd76d25d
BP
325 "type": {"key": {"type": "integer",
326 "minInteger": 1000},
327 "min": 0, "max": 1}},
d879a707 328 "inactivity_probe": {
d879a707 329 "type": {"key": "integer", "min": 0, "max": 1}},
352cd3f4 330 "discover_accept_regex": {
d879a707 331 "type": {"key": "string", "min": 0, "max": 1}},
352cd3f4 332 "discover_update_resolv_conf": {
d879a707
BP
333 "type": {"key": "boolean", "min": 0, "max": 1}},
334 "connection_mode": {
bfc96d9b
BP
335 "type": {"key": {"type": "string",
336 "enum": ["set", ["in-band", "out-of-band"]]},
bd76d25d 337 "min": 0, "max": 1}},
d879a707 338 "local_ip": {
89521e3f 339 "type": {"key": {"type": "string"},
bd76d25d 340 "min": 0, "max": 1}},
d879a707 341 "local_netmask": {
89521e3f 342 "type": {"key": {"type": "string"},
bd76d25d 343 "min": 0, "max": 1}},
d879a707 344 "local_gateway": {
89521e3f 345 "type": {"key": {"type": "string"},
bd76d25d 346 "min": 0, "max": 1}},
d879a707 347 "controller_rate_limit": {
bd76d25d
BP
348 "type": {"key": {"type": "integer",
349 "minInteger": 100},
350 "min": 0, "max": 1}},
d879a707 351 "controller_burst_limit": {
299a244b 352 "type": {"key": {"type": "integer",
bd76d25d 353 "minInteger": 25},
13008eb3
BP
354 "min": 0, "max": 1}},
355 "external_ids": {
356 "type": {"key": "string", "value": "string",
357 "min": 0, "max": "unlimited"}}}},
94db5407
BP
358 "Manager": {
359 "columns": {
360 "target": {
361 "type": "string"},
362 "max_backoff": {
363 "type": {"key": {"type": "integer",
364 "minInteger": 1000},
365 "min": 0, "max": 1}},
366 "inactivity_probe": {
367 "type": {"key": "integer", "min": 0, "max": 1}},
368 "connection_mode": {
369 "type": {"key": {"type": "string",
370 "enum": ["set", ["in-band", "out-of-band"]]},
371 "min": 0, "max": 1}},
372 "external_ids": {
373 "type": {"key": "string", "value": "string",
374 "min": 0, "max": "unlimited"}}}},
d879a707 375 "SSL": {
d879a707
BP
376 "columns": {
377 "private_key": {
d879a707
BP
378 "type": "string"},
379 "certificate": {
d879a707
BP
380 "type": "string"},
381 "ca_cert": {
76343538
BP
382 "type": "string"},
383 "bootstrap_ca_cert": {
13008eb3
BP
384 "type": "boolean"},
385 "external_ids": {
386 "type": {"key": "string", "value": "string",
387 "min": 0, "max": "unlimited"}}},
a4230ded 388 "maxRows": 1}}}