Merge remote-tracking branch 'origin/master' into ovn4
[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": {"key": {
21                            "type": "string",
22                            "enum": ["set", ["geneve", "stt", "vxlan"]]}}},
23                 "options": {"type": {"key": "string",
24                                      "value": "string",
25                                      "min": 0,
26                                      "max": "unlimited"}},
27                 "ip": {"type": "string"}}},
28         "Gateway": {
29             "columns": {"vlan_map": {"type": {"key": {"type": "integer",
30                                                       "minInteger": 0,
31                                                       "maxInteger": 4095},
32                                               "value": {"type": "string"},
33                                               "min": 0,
34                                               "max": "unlimited"}}}},
35         "Pipeline": {
36             "columns": {
37                 "logical_datapath": {"type": "uuid"},
38                 "table_id": {"type": {"key": {"type": "integer",
39                                               "minInteger": 0,
40                                               "maxInteger": 31}}},
41                 "priority": {"type": {"key": {"type": "integer",
42                                               "minInteger": 0,
43                                               "maxInteger": 65535}}},
44                 "match": {"type": "string"},
45                 "actions": {"type": "string"}},
46             "isRoot": true},
47         "Binding": {
48             "columns": {
49                 "logical_datapath": {"type": "uuid"},
50                 "logical_port": {"type": "string"},
51                 "tunnel_key": {
52                      "type": {"key": {"type": "integer",
53                                       "minInteger": 1,
54                                       "maxInteger": 65535}}},
55                 "parent_port": {"type": {"key": "string", "min": 0, "max": 1}},
56                 "tag": {
57                      "type": {"key": {"type": "integer",
58                                       "minInteger": 0,
59                                       "maxInteger": 4095},
60                               "min": 0, "max": 1}},
61                 "chassis": {"type": {"key": {"type": "uuid",
62                                              "refTable": "Chassis",
63                                              "refType": "weak"},
64                                      "min": 0, "max": 1}},
65                 "mac": {"type": {"key": "string",
66                                  "min": 0,
67                                  "max": "unlimited"}}},
68             "indexes": [["logical_port"], ["tunnel_key"]],
69             "isRoot": true}},
70     "version": "1.0.0"}