7f857ed4234e86d729948e623ad0d97185082c06
[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                 "vtep_logical_switches" : {"type": {"key": "string",
11                                                     "min": 0,
12                                                     "max": "unlimited"}}},
13             "isRoot": true,
14             "indexes": [["name"]]},
15         "Encap": {
16             "columns": {
17                 "type": {"type": {"key": {
18                            "type": "string",
19                            "enum": ["set", ["geneve", "stt", "vxlan"]]}}},
20                 "options": {"type": {"key": "string",
21                                      "value": "string",
22                                      "min": 0,
23                                      "max": "unlimited"}},
24                 "ip": {"type": "string"}}},
25         "Logical_Flow": {
26             "columns": {
27                 "logical_datapath": {"type": {"key": {"type": "uuid",
28                                                       "refTable": "Datapath_Binding"}}},
29                 "pipeline": {"type": {"key": {"type": "string",
30                                       "enum": ["set", ["ingress",
31                                                        "egress"]]}}},
32                 "table_id": {"type": {"key": {"type": "integer",
33                                               "minInteger": 0,
34                                               "maxInteger": 15}}},
35                 "priority": {"type": {"key": {"type": "integer",
36                                               "minInteger": 0,
37                                               "maxInteger": 65535}}},
38                 "match": {"type": "string"},
39                 "actions": {"type": "string"},
40                 "external_ids": {
41                     "type": {"key": "string", "value": "string",
42                              "min": 0, "max": "unlimited"}}},
43             "isRoot": true},
44         "Multicast_Group": {
45             "columns": {
46                 "datapath": {"type": {"key": {"type": "uuid",
47                                               "refTable": "Datapath_Binding"}}},
48                 "name": {"type": "string"},
49                 "tunnel_key": {
50                     "type": {"key": {"type": "integer",
51                                      "minInteger": 32768,
52                                      "maxInteger": 65535}}},
53                 "ports": {"type": {"key": {"type": "uuid",
54                                            "refTable": "Port_Binding",
55                                            "refType": "weak"},
56                                    "min": 1, "max": "unlimited"}}},
57             "indexes": [["datapath", "tunnel_key"],
58                         ["datapath", "name"]],
59             "isRoot": true},
60         "Datapath_Binding": {
61             "columns": {
62                 "tunnel_key": {
63                      "type": {"key": {"type": "integer",
64                                       "minInteger": 1,
65                                       "maxInteger": 16777215}}},
66                 "external_ids": {
67                     "type": {"key": "string", "value": "string",
68                              "min": 0, "max": "unlimited"}}},
69             "indexes": [["tunnel_key"]],
70             "isRoot": true},
71         "Port_Binding": {
72             "columns": {
73                 "logical_port": {"type": "string"},
74                 "type": {"type": "string"},
75                 "options": {
76                      "type": {"key": "string",
77                               "value": "string",
78                               "min": 0,
79                               "max": "unlimited"}},
80                 "datapath": {"type": {"key": {"type": "uuid",
81                                               "refTable": "Datapath_Binding"}}},
82                 "tunnel_key": {
83                      "type": {"key": {"type": "integer",
84                                       "minInteger": 1,
85                                       "maxInteger": 32767}}},
86                 "parent_port": {"type": {"key": "string", "min": 0, "max": 1}},
87                 "tag": {
88                      "type": {"key": {"type": "integer",
89                                       "minInteger": 1,
90                                       "maxInteger": 4095},
91                               "min": 0, "max": 1}},
92                 "chassis": {"type": {"key": {"type": "uuid",
93                                              "refTable": "Chassis",
94                                              "refType": "weak"},
95                                      "min": 0, "max": 1}},
96                 "mac": {"type": {"key": "string",
97                                  "min": 0,
98                                  "max": "unlimited"}}},
99             "indexes": [["datapath", "tunnel_key"], ["logical_port"]],
100             "isRoot": true}},
101     "version": "1.0.0"}