vswitchd: Remove default controller config from Open_vSwitch table
[cascardo/ovs.git] / vswitchd / vswitch.ovsschema
1 {"name": "Open_vSwitch",
2  "tables": {
3    "Open_vSwitch": {
4      "columns": {
5        "bridges": {
6          "type": {"key": {"type": "uuid",
7                           "refTable": "Bridge"},
8                   "min": 0, "max": "unlimited"}},
9        "managers": {
10          "type": {"key": "string", "min": 0, "max": "unlimited"}},
11        "ssl": {
12          "type": {"key": {"type": "uuid",
13                           "refTable": "SSL"},
14                   "min": 0, "max": 1}},
15        "external_ids": {
16          "type": {"key": "string", "value": "string",
17                   "min": 0, "max": "unlimited"}},
18        "next_cfg": {
19          "type": "integer"},
20        "cur_cfg": {
21          "type": "integer"},
22        "capabilities": {
23          "type": {"key": "string",
24                   "value": {"type": "uuid",
25                             "refTable": "Capability"},
26                   "min": 0, "max": "unlimited"}},
27        "statistics": {
28          "type": {"key": "string", "value": "integer", "min": 0, "max": "unlimited"},
29          "ephemeral": true}},
30      "maxRows": 1},
31    "Capability": {
32      "columns": {
33        "details": {
34          "type": {"key": "string", "value": "string",
35                   "min": 0, "max": "unlimited"}}}},
36    "Bridge": {
37      "columns": {
38        "name": {
39          "type": "string"},
40        "datapath_type": {
41          "type": "string"},
42        "datapath_id": {
43          "type": {"key": "string", "min": 0, "max": 1},
44          "ephemeral": true},
45        "ports": {
46          "type": {"key": {"type": "uuid",
47                           "refTable": "Port"},
48                   "min": 0, "max": "unlimited"}},
49        "mirrors": {
50          "type": {"key": {"type": "uuid",
51                           "refTable": "Mirror"},
52                   "min": 0, "max": "unlimited"}},
53        "netflow": {
54          "type": {"key": {"type": "uuid",
55                           "refTable": "NetFlow"},
56                   "min": 0, "max": 1}},
57        "sflow": {
58          "type": {"key": {"type": "uuid",
59                           "refTable": "sFlow"},
60                   "min": 0, "max": 1}},
61        "controller": {
62          "type": {"key": {"type": "uuid",
63                           "refTable": "Controller"},
64                   "min": 0, "max": "unlimited"}},
65        "other_config": {
66          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
67        "external_ids": {
68          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
69        "flood_vlans": {
70          "type": {"key": {"type": "integer",
71                           "minInteger": 0, 
72                           "maxInteger": 4095},
73                   "min": 0, "max": 4096}}}},
74    "Port": {
75      "columns": {
76        "name": {
77          "type": "string"},
78        "interfaces": {
79          "type": {"key": {"type": "uuid",
80                           "refTable": "Interface"},
81                   "min": 1, "max": "unlimited"}},
82        "trunks": {
83          "type": {"key": {"type": "integer",
84                           "minInteger": 0,
85                           "maxInteger": 4095},
86                   "min": 0, "max": 4096}},
87        "tag": {
88          "type": {"key": {"type": "integer",
89                           "minInteger": 0,
90                           "maxInteger": 4095},
91                   "min": 0, "max": 1}},
92        "qos": {
93          "type": {"key": {"type": "uuid",
94                           "refTable": "QoS"},
95                   "min": 0, "max": 1}},
96        "mac": {
97          "type": {"key": {"type": "string"},
98                   "min": 0, "max": 1}},
99        "bond_updelay": {
100          "type": "integer"},
101        "bond_downdelay": {
102          "type": "integer"},
103        "bond_fake_iface": {
104          "type": "boolean"},
105        "fake_bridge": {
106          "type": "boolean"},
107        "other_config": {
108          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
109        "external_ids": {
110          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}}}},
111    "Interface": {
112      "columns": {
113        "name": {
114          "type": "string"},
115        "type": {
116          "type": "string"},
117        "options": {
118          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
119        "ingress_policing_rate": {
120          "type": {"key": {"type": "integer",
121                           "minInteger": 0}}},
122        "ingress_policing_burst": {
123          "type": {"key": {"type": "integer",
124                           "minInteger": 0}}},
125        "mac": {
126          "type": {"key": {"type": "string"},
127                   "min": 0, "max": 1}},
128        "external_ids": {
129          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
130        "ofport": {
131          "type": {"key": "integer", "min": 0, "max": 1},
132          "ephemeral": true},
133        "statistics": {
134          "type": {"key": "string", "value": "integer", "min": 0, "max": "unlimited"},
135          "ephemeral": true}}},
136    "QoS": {
137      "columns": {
138        "type": {
139          "type": "string"},
140        "queues": {
141          "type": {"key": {"type": "integer",
142                           "minInteger": 0,
143                           "maxInteger": 4294967295},
144                   "value": {"type": "uuid",
145                             "refTable": "Queue"},
146                   "min": 0, "max": "unlimited"}},
147        "other_config": {
148          "type": {"key": "string", "value": "string", 
149                   "min": 0, "max": "unlimited"}}}},
150    "Queue": {
151      "columns": {
152        "other_config": {
153          "type": {"key": "string", "value": "string", 
154                   "min": 0, "max": "unlimited"}}}},
155    "Mirror": {
156      "columns": {
157        "name": {
158          "type": "string"},
159        "select_all": {
160          "type": "boolean"
161        },
162        "select_src_port": {
163          "type": {"key": {"type": "uuid",
164                           "refTable": "Port",
165                           "refType": "weak"},
166                    "min": 0, "max": "unlimited"}},
167        "select_dst_port": {
168          "type": {"key": {"type": "uuid",
169                           "refTable": "Port",
170                           "refType": "weak"},
171                    "min": 0, "max": "unlimited"}},
172        "select_vlan": {
173          "type": {"key": {"type": "integer",
174                           "minInteger": 0,
175                           "maxInteger": 4095},
176                   "min": 0, "max": 4096}},
177        "output_port": {
178          "type": {"key": {"type": "uuid",
179                           "refTable": "Port",
180                           "refType": "weak"},
181                   "min": 0, "max": 1}},
182        "output_vlan": {
183          "type": {"key": {"type": "integer",
184                           "minInteger": 1,
185                           "maxInteger": 4095},
186                   "min": 0, "max": 1}}}},
187    "NetFlow": {
188      "columns": {
189        "targets": {
190          "type": {"key": {"type": "string"},
191                   "min": 1, "max": "unlimited"}},
192        "engine_type": {
193          "type": {"key": {"type": "integer",
194                           "minInteger": 0,
195                           "maxInteger": 255},
196                   "min": 0, "max": 1}},
197        "engine_id": {
198          "type": {"key": {"type": "integer",
199                           "minInteger": 0,
200                           "maxInteger": 255},
201                   "min": 0, "max": 1}},
202        "add_id_to_interface": {
203          "type": "boolean"},
204        "active_timeout": {
205          "type": {"key": {"type": "integer",
206                           "minInteger": -1}}}}},
207    "sFlow": {
208      "columns": {
209        "targets": {
210          "type": {"key": "string", "min": 1, "max": "unlimited"}},
211        "sampling": {
212          "type": {"key": "integer", "min": 0, "max": 1}},
213        "polling": {
214          "type": {"key": "integer", "min": 0, "max": 1}},
215        "header": {
216          "type": {"key": "integer", "min": 0, "max": 1}},
217        "agent": {
218          "type": {"key": "string", "min": 0, "max": 1}}}},
219    "Controller": {
220      "columns": {
221        "target": {
222          "type": "string"},
223        "max_backoff": {
224          "type": {"key": {"type": "integer",
225                           "minInteger": 1000},
226                   "min": 0, "max": 1}},
227        "inactivity_probe": {
228          "type": {"key": "integer", "min": 0, "max": 1}},
229        "fail_mode": {
230          "type": {"key": {"type": "string",
231                           "enum": ["set", ["standalone", "secure"]]},
232                   "min": 0, "max": 1}},
233        "discover_accept_regex": {
234          "type": {"key": "string", "min": 0, "max": 1}},
235        "discover_update_resolv_conf": {
236          "type": {"key": "boolean", "min": 0, "max": 1}},
237        "connection_mode": {
238          "type": {"key": {"type": "string",
239                   "enum": ["set", ["in-band", "out-of-band"]]},
240                   "min": 0, "max": 1}},
241        "local_ip": {
242          "type": {"key": {"type": "string"},
243                   "min": 0, "max": 1}},
244        "local_netmask": {
245          "type": {"key": {"type": "string"},
246                   "min": 0, "max": 1}},
247        "local_gateway": {
248          "type": {"key": {"type": "string"},
249                   "min": 0, "max": 1}},
250        "controller_rate_limit": {
251          "type": {"key": {"type": "integer",
252                           "minInteger": 100},
253                   "min": 0, "max": 1}},
254        "controller_burst_limit": {
255          "type": {"key": {"type": "integer", 
256                           "minInteger": 25},
257                   "min": 0, "max": 1}}}},
258    "SSL": {
259      "columns": {
260        "private_key": {
261          "type": "string"},
262        "certificate": {
263          "type": "string"},
264        "ca_cert": {
265          "type": "string"},
266        "bootstrap_ca_cert": {
267          "type": "boolean"}},
268      "maxRows": 1}}}