ovn: Add logical_datapath concept to schema.
[cascardo/ovs.git] / ovn / ovn-sb.ovsschema
1 {
2     "name": "OVN_Southbound",
3     "tables": {
4         "Chassis": {
5             "columns": {
6                 "name": {"type": "string"},
7                 "encaps": {"type": {"key": {"type": "uuid",
8                                             "refTable": "Encap"},
9                                     "min": 1, "max": "unlimited"}},
10                 "gateway_ports": {"type": {"key": "string",
11                                            "value": {"type": "uuid",
12                                                      "refTable": "Gateway",
13                                                      "refType": "strong"},
14                                            "min": 0,
15                                            "max": "unlimited"}}},
16             "isRoot": true,
17             "indexes": [["name"]]},
18         "Encap": {
19             "columns": {
20                 "type": {"type": "string"},
21                 "options": {"type": {"key": "string",
22                                      "value": "string",
23                                      "min": 0,
24                                      "max": "unlimited"}},
25                 "ip": {"type": "string"}}},
26         "Gateway": {
27             "columns": {"attached_port": {"type": "string"},
28                         "vlan_map": {"type": {"key": {"type": "integer",
29                                                       "minInteger": 0,
30                                                       "maxInteger": 4095},
31                                               "value": {"type": "string"},
32                                               "min": 0,
33                                               "max": "unlimited"}}}},
34         "Pipeline": {
35             "columns": {
36                 "logical_datapath": {"type": "uuid"},
37                 "table_id": {"type": {"key": {"type": "integer",
38                                               "minInteger": 0,
39                                               "maxInteger": 127}}},
40                 "priority": {"type": {"key": {"type": "integer",
41                                               "minInteger": 0,
42                                               "maxInteger": 65535}}},
43                 "match": {"type": "string"},
44                 "actions": {"type": "string"}},
45             "isRoot": true},
46         "Bindings": {
47             "columns": {
48                 "logical_datapath": {"type": "uuid"},
49                 "logical_port": {"type": "string"},
50                 "parent_port": {"type": {"key": "string", "min": 0, "max": 1}},
51                 "tag": {
52                      "type": {"key": {"type": "integer",
53                                       "minInteger": 0,
54                                       "maxInteger": 4095},
55                               "min": 0, "max": 1}},
56                 "chassis": {"type": "string"},
57                 "mac": {"type": {"key": "string",
58                                  "min": 0,
59                                  "max": "unlimited"}}},
60             "indexes": [["logical_port"]],
61             "isRoot": true}},
62     "version": "1.0.0"}