schema: Monitor's remote_mps is not ephemeral.
[sliver-openvswitch.git] / vswitchd / vswitch.ovsschema
1 {"name": "Open_vSwitch",
2  "version": "3.0.1",
3  "cksum": "1940448373 15497",
4  "tables": {
5    "Open_vSwitch": {
6      "columns": {
7        "bridges": {
8          "type": {"key": {"type": "uuid",
9                           "refTable": "Bridge"},
10                   "min": 0, "max": "unlimited"}},
11        "manager_options": {
12          "type": {"key": {"type": "uuid",
13                           "refTable": "Manager"},
14                   "min": 0, "max": "unlimited"}},
15        "ssl": {
16          "type": {"key": {"type": "uuid",
17                           "refTable": "SSL"},
18                   "min": 0, "max": 1}},
19        "external_ids": {
20          "type": {"key": "string", "value": "string",
21                   "min": 0, "max": "unlimited"}},
22        "next_cfg": {
23          "type": "integer"},
24        "cur_cfg": {
25          "type": "integer"},
26        "capabilities": {
27          "type": {"key": "string",
28                   "value": {"type": "uuid",
29                             "refTable": "Capability"},
30                   "min": 0, "max": "unlimited"}},
31        "statistics": {
32          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"},
33          "ephemeral": true},
34        "ovs_version": {
35          "type": {"key": {"type": "string"},
36                   "min": 0, "max": 1}},
37        "db_version": {
38          "type": {"key": {"type": "string"},
39                   "min": 0, "max": 1}},
40        "system_type": {
41          "type": {"key": {"type": "string"},
42                   "min": 0, "max": 1}},
43        "system_version": {
44          "type": {"key": {"type": "string"},
45                   "min": 0, "max": 1}}},
46      "isRoot": true,
47      "maxRows": 1},
48    "Capability": {
49      "columns": {
50        "details": {
51          "type": {"key": "string", "value": "string",
52                   "min": 0, "max": "unlimited"}}}},
53    "Bridge": {
54      "columns": {
55        "name": {
56          "type": "string",
57          "mutable": false},
58        "datapath_type": {
59          "type": "string"},
60        "datapath_id": {
61          "type": {"key": "string", "min": 0, "max": 1},
62          "ephemeral": true},
63        "ports": {
64          "type": {"key": {"type": "uuid",
65                           "refTable": "Port"},
66                   "min": 0, "max": "unlimited"}},
67        "mirrors": {
68          "type": {"key": {"type": "uuid",
69                           "refTable": "Mirror"},
70                   "min": 0, "max": "unlimited"}},
71        "netflow": {
72          "type": {"key": {"type": "uuid",
73                           "refTable": "NetFlow"},
74                   "min": 0, "max": 1}},
75        "sflow": {
76          "type": {"key": {"type": "uuid",
77                           "refTable": "sFlow"},
78                   "min": 0, "max": 1}},
79        "controller": {
80          "type": {"key": {"type": "uuid",
81                           "refTable": "Controller"},
82                   "min": 0, "max": "unlimited"}},
83        "fail_mode": {
84          "type": {"key": {"type": "string",
85                           "enum": ["set", ["standalone", "secure"]]},
86                   "min": 0, "max": 1}},
87        "other_config": {
88          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
89        "external_ids": {
90          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
91        "flood_vlans": {
92          "type": {"key": {"type": "integer",
93                           "minInteger": 0,
94                           "maxInteger": 4095},
95                   "min": 0, "max": 4096}}}},
96    "Port": {
97      "columns": {
98        "name": {
99          "type": "string",
100          "mutable": false},
101        "interfaces": {
102          "type": {"key": {"type": "uuid",
103                           "refTable": "Interface"},
104                   "min": 1, "max": "unlimited"}},
105        "trunks": {
106          "type": {"key": {"type": "integer",
107                           "minInteger": 0,
108                           "maxInteger": 4095},
109                   "min": 0, "max": 4096}},
110        "tag": {
111          "type": {"key": {"type": "integer",
112                           "minInteger": 0,
113                           "maxInteger": 4095},
114                   "min": 0, "max": 1}},
115        "qos": {
116          "type": {"key": {"type": "uuid",
117                           "refTable": "QoS"},
118                   "min": 0, "max": 1}},
119        "mac": {
120          "type": {"key": {"type": "string"},
121                   "min": 0, "max": 1}},
122        "bond_mode": {
123          "type": {"key": {"type": "string",
124            "enum": ["set", ["balance-tcp", "balance-slb", "active-backup"]]},
125          "min": 0, "max": 1}},
126        "lacp": {
127          "type": {"key": {"type": "string",
128            "enum": ["set", ["active", "passive", "off"]]},
129          "min": 0, "max": 1}},
130        "bond_updelay": {
131          "type": "integer"},
132        "bond_downdelay": {
133          "type": "integer"},
134        "bond_fake_iface": {
135          "type": "boolean"},
136        "fake_bridge": {
137          "type": "boolean"},
138        "other_config": {
139          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
140        "external_ids": {
141          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}}}},
142    "Interface": {
143      "columns": {
144        "name": {
145          "type": "string",
146          "mutable": false},
147        "type": {
148          "type": "string"},
149        "options": {
150          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
151        "ingress_policing_rate": {
152          "type": {"key": {"type": "integer",
153                           "minInteger": 0}}},
154        "ingress_policing_burst": {
155          "type": {"key": {"type": "integer",
156                           "minInteger": 0}}},
157        "mac": {
158          "type": {"key": {"type": "string"},
159                   "min": 0, "max": 1}},
160        "external_ids": {
161          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
162        "ofport": {
163          "type": {"key": "integer", "min": 0, "max": 1},
164          "ephemeral": true},
165        "monitor": {
166          "type": {
167            "key": {"type": "uuid", "refTable": "Monitor"},
168            "min": 0,
169            "max": 1}},
170        "other_config": {
171          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
172        "statistics": {
173          "type": {"key": "string", "value": "integer", "min": 0, "max": "unlimited"},
174          "ephemeral": true},
175        "status": {
176          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"},
177          "ephemeral": true},
178        "admin_state": {
179          "type": {"key": {"type": "string",
180                           "enum": ["set", ["up", "down"]]},
181                   "min": 0, "max": 1},
182          "ephemeral": true},
183        "link_state": {
184          "type": {"key": {"type": "string",
185                           "enum": ["set", ["up", "down"]]},
186                   "min": 0, "max": 1},
187          "ephemeral": true},
188        "link_speed": {
189          "type": {"key": "integer", "min": 0, "max": 1},
190          "ephemeral": true},
191        "duplex": {
192          "type": {"key": {"type": "string",
193                           "enum": ["set", ["half", "full"]]},
194                   "min": 0, "max": 1},
195          "ephemeral": true},
196        "mtu": {
197          "type": {"key": "integer", "min": 0, "max": 1},
198          "ephemeral": true}}},
199    "Monitor": {
200      "columns": {
201        "mpid": {
202          "type" : {
203            "key": { "type": "integer", "minInteger": 1, "maxInteger": 8191}}},
204        "md_name": {
205          "type" : {
206            "key": { "type": "string", "minLength": 1, "maxLength": 43},
207            "min": 0,
208            "max": 1}},
209        "ma_name": {
210          "type" : {
211            "key": { "type": "string", "minLength": 1, "maxLength": 43},
212            "min": 0,
213            "max": 1}},
214        "interval": {
215          "type": {
216            "key": { "type": "integer", "minInteger": 100},
217            "min": 0,
218            "max": 1}},
219        "remote_mps": {
220          "type": {
221            "key": { "type": "uuid", "refTable": "Maintenance_Point"},
222            "min": 0,
223            "max": "unlimited"}},
224        "unexpected_remote_mpids": {
225          "type": {
226            "key": { "type": "integer"},
227            "min": 0,
228            "max": "unlimited"},
229          "ephemeral": true},
230        "unexpected_remote_maids": {
231          "type": {
232            "key": "string",
233            "min": 0,
234            "max": "unlimited"},
235          "ephemeral": true},
236        "fault": {
237          "type": {
238            "key": { "type": "boolean"},
239            "min": 0,
240            "max": 1},
241          "ephemeral": true}}},
242    "Maintenance_Point": {
243      "columns": {
244        "mpid": {
245          "type" : {
246            "key": { "type": "integer", "minInteger": 1, "maxInteger": 8191}},
247          "mutable": false},
248        "fault": {
249          "type": {
250            "key": { "type": "boolean"},
251            "min": 0,
252            "max": 1},
253          "ephemeral": true}}},
254    "QoS": {
255      "columns": {
256        "type": {
257          "type": "string"},
258        "queues": {
259          "type": {"key": {"type": "integer",
260                           "minInteger": 0,
261                           "maxInteger": 4294967295},
262                   "value": {"type": "uuid",
263                             "refTable": "Queue"},
264                   "min": 0, "max": "unlimited"}},
265        "other_config": {
266          "type": {"key": "string", "value": "string",
267                   "min": 0, "max": "unlimited"}},
268        "external_ids": {
269          "type": {"key": "string", "value": "string",
270                   "min": 0, "max": "unlimited"}}},
271      "isRoot": true},
272    "Queue": {
273      "columns": {
274        "other_config": {
275          "type": {"key": "string", "value": "string",
276                   "min": 0, "max": "unlimited"}},
277        "external_ids": {
278          "type": {"key": "string", "value": "string",
279                   "min": 0, "max": "unlimited"}}},
280      "isRoot": true},
281    "Mirror": {
282      "columns": {
283        "name": {
284          "type": "string"},
285        "select_all": {
286          "type": "boolean"
287        },
288        "select_src_port": {
289          "type": {"key": {"type": "uuid",
290                           "refTable": "Port",
291                           "refType": "weak"},
292                    "min": 0, "max": "unlimited"}},
293        "select_dst_port": {
294          "type": {"key": {"type": "uuid",
295                           "refTable": "Port",
296                           "refType": "weak"},
297                    "min": 0, "max": "unlimited"}},
298        "select_vlan": {
299          "type": {"key": {"type": "integer",
300                           "minInteger": 0,
301                           "maxInteger": 4095},
302                   "min": 0, "max": 4096}},
303        "output_port": {
304          "type": {"key": {"type": "uuid",
305                           "refTable": "Port",
306                           "refType": "weak"},
307                   "min": 0, "max": 1}},
308        "output_vlan": {
309          "type": {"key": {"type": "integer",
310                           "minInteger": 1,
311                           "maxInteger": 4095},
312                   "min": 0, "max": 1}},
313        "external_ids": {
314          "type": {"key": "string", "value": "string",
315                   "min": 0, "max": "unlimited"}}}},
316    "NetFlow": {
317      "columns": {
318        "targets": {
319          "type": {"key": {"type": "string"},
320                   "min": 1, "max": "unlimited"}},
321        "engine_type": {
322          "type": {"key": {"type": "integer",
323                           "minInteger": 0,
324                           "maxInteger": 255},
325                   "min": 0, "max": 1}},
326        "engine_id": {
327          "type": {"key": {"type": "integer",
328                           "minInteger": 0,
329                           "maxInteger": 255},
330                   "min": 0, "max": 1}},
331        "add_id_to_interface": {
332          "type": "boolean"},
333        "active_timeout": {
334          "type": {"key": {"type": "integer",
335                           "minInteger": -1}}},
336        "external_ids": {
337          "type": {"key": "string", "value": "string",
338                   "min": 0, "max": "unlimited"}}}},
339    "sFlow": {
340      "columns": {
341        "targets": {
342          "type": {"key": "string", "min": 1, "max": "unlimited"}},
343        "sampling": {
344          "type": {"key": "integer", "min": 0, "max": 1}},
345        "polling": {
346          "type": {"key": "integer", "min": 0, "max": 1}},
347        "header": {
348          "type": {"key": "integer", "min": 0, "max": 1}},
349        "agent": {
350          "type": {"key": "string", "min": 0, "max": 1}},
351        "external_ids": {
352          "type": {"key": "string", "value": "string",
353                   "min": 0, "max": "unlimited"}}}},
354    "Controller": {
355      "columns": {
356        "target": {
357          "type": "string"},
358        "max_backoff": {
359          "type": {"key": {"type": "integer",
360                           "minInteger": 1000},
361                   "min": 0, "max": 1}},
362        "inactivity_probe": {
363          "type": {"key": "integer", "min": 0, "max": 1}},
364        "connection_mode": {
365          "type": {"key": {"type": "string",
366                   "enum": ["set", ["in-band", "out-of-band"]]},
367                   "min": 0, "max": 1}},
368        "local_ip": {
369          "type": {"key": {"type": "string"},
370                   "min": 0, "max": 1}},
371        "local_netmask": {
372          "type": {"key": {"type": "string"},
373                   "min": 0, "max": 1}},
374        "local_gateway": {
375          "type": {"key": {"type": "string"},
376                   "min": 0, "max": 1}},
377        "controller_rate_limit": {
378          "type": {"key": {"type": "integer",
379                           "minInteger": 100},
380                   "min": 0, "max": 1}},
381        "controller_burst_limit": {
382          "type": {"key": {"type": "integer",
383                           "minInteger": 25},
384                   "min": 0, "max": 1}},
385        "external_ids": {
386          "type": {"key": "string", "value": "string",
387                   "min": 0, "max": "unlimited"}},
388        "is_connected": {
389          "type": "boolean",
390          "ephemeral": true},
391        "role": {
392          "type": {"key": {"type": "string",
393                           "enum": ["set", ["other", "master", "slave"]]},
394                   "min": 0, "max": 1},
395          "ephemeral": true},
396        "status": {
397          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"},
398          "ephemeral": true}}},
399    "Manager": {
400      "columns": {
401        "target": {
402          "type": "string"},
403        "max_backoff": {
404          "type": {"key": {"type": "integer",
405                           "minInteger": 1000},
406                   "min": 0, "max": 1}},
407        "inactivity_probe": {
408          "type": {"key": "integer", "min": 0, "max": 1}},
409        "connection_mode": {
410          "type": {"key": {"type": "string",
411                   "enum": ["set", ["in-band", "out-of-band"]]},
412                   "min": 0, "max": 1}},
413        "external_ids": {
414          "type": {"key": "string", "value": "string",
415                   "min": 0, "max": "unlimited"}},
416        "is_connected": {
417          "type": "boolean",
418          "ephemeral": true},
419        "status": {
420          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"},
421          "ephemeral": true}}},
422    "SSL": {
423      "columns": {
424        "private_key": {
425          "type": "string"},
426        "certificate": {
427          "type": "string"},
428        "ca_cert": {
429          "type": "string"},
430        "bootstrap_ca_cert": {
431          "type": "boolean"},
432        "external_ids": {
433          "type": {"key": "string", "value": "string",
434                   "min": 0, "max": "unlimited"}}},
435      "maxRows": 1}}}