]> git.proxmox.com Git - ovs.git/blame - ovn/ovn-nb.ovsschema
ovn-nb: Extend schema to support networks of routers.
[ovs.git] / ovn / ovn-nb.ovsschema
CommitLineData
fe36184b
BP
1{
2 "name": "OVN_Northbound",
59358359 3 "version": "1.0.0",
ae9ba6b2 4 "cksum": "3156743511 4790",
fe36184b
BP
5 "tables": {
6 "Logical_Switch": {
7 "columns": {
c7ec1161 8 "name": {"type": "string"},
445a266a
BP
9 "ports": {"type": {"key": {"type": "uuid",
10 "refTable": "Logical_Port",
11 "refType": "strong"},
12 "min": 0,
13 "max": "unlimited"}},
14 "acls": {"type": {"key": {"type": "uuid",
15 "refTable": "ACL",
16 "refType": "strong"},
17 "min": 0,
18 "max": "unlimited"}},
fe36184b
BP
19 "router_port": {"type": {"key": {"type": "uuid",
20 "refTable": "Logical_Router_Port",
ae9ba6b2 21 "refType": "weak"},
fe36184b
BP
22 "min": 0, "max": 1}},
23 "external_ids": {
24 "type": {"key": "string", "value": "string",
445a266a
BP
25 "min": 0, "max": "unlimited"}}},
26 "isRoot": true},
fe36184b
BP
27 "Logical_Port": {
28 "columns": {
fe36184b 29 "name": {"type": "string"},
1a76c93e
RB
30 "type": {"type": "string"},
31 "options": {
32 "type": {"key": "string",
33 "value": "string",
34 "min": 0,
35 "max": "unlimited"}},
9fb4636f
GS
36 "parent_name": {"type": {"key": "string", "min": 0, "max": 1}},
37 "tag": {
38 "type": {"key": {"type": "integer",
0a45a9e9 39 "minInteger": 1,
9fb4636f
GS
40 "maxInteger": 4095},
41 "min": 0, "max": 1}},
fe36184b
BP
42 "macs": {"type": {"key": "string",
43 "min": 0,
44 "max": "unlimited"}},
45 "port_security": {"type": {"key": "string",
46 "min": 0,
47 "max": "unlimited"}},
48 "up": {"type": {"key": "boolean", "min": 0, "max": 1}},
95a9a275 49 "enabled": {"type": {"key": "boolean", "min": 0, "max": 1}},
fe36184b
BP
50 "external_ids": {
51 "type": {"key": "string", "value": "string",
52 "min": 0, "max": "unlimited"}}},
445a266a
BP
53 "indexes": [["name"]],
54 "isRoot": false},
fe36184b
BP
55 "ACL": {
56 "columns": {
fe36184b 57 "priority": {"type": {"key": {"type": "integer",
f37d2b86 58 "minInteger": 1,
1b19bbb4
JP
59 "maxInteger": 65534}}},
60 "direction": {"type": {"key": {"type": "string",
61 "enum": ["set", ["from-lport", "to-lport"]]}}},
fe36184b
BP
62 "match": {"type": "string"},
63 "action": {"type": {"key": {"type": "string",
64 "enum": ["set", ["allow", "allow-related", "drop", "reject"]]}}},
65 "log": {"type": "boolean"},
66 "external_ids": {
67 "type": {"key": "string", "value": "string",
445a266a
BP
68 "min": 0, "max": "unlimited"}}},
69 "isRoot": false},
fe36184b
BP
70 "Logical_Router": {
71 "columns": {
de8fe480 72 "name": {"type": "string"},
445a266a
BP
73 "ports": {"type": {"key": {"type": "uuid",
74 "refTable": "Logical_Router_Port",
ae9ba6b2 75 "refType": "strong"},
445a266a
BP
76 "min": 0,
77 "max": "unlimited"}},
fe36184b
BP
78 "default_gw": {"type": {"key": "string", "min": 0, "max": 1}},
79 "external_ids": {
80 "type": {"key": "string", "value": "string",
445a266a
BP
81 "min": 0, "max": "unlimited"}}},
82 "isRoot": true},
fe36184b
BP
83 "Logical_Router_Port": {
84 "columns": {
eae34849 85 "name": {"type": "string"},
fe36184b
BP
86 "network": {"type": "string"},
87 "mac": {"type": "string"},
ae9ba6b2
BP
88 "peer": {"type": {"key": {"type": "uuid",
89 "refTable": "Logical_Router_Port",
90 "refType": "strong"},
91 "min": 0, "max": 1}},
fe36184b
BP
92 "external_ids": {
93 "type": {"key": "string", "value": "string",
445a266a
BP
94 "min": 0, "max": "unlimited"}}},
95 "isRoot": false}},
fe36184b 96 "version": "1.0.0"}