ovn: Change strategy for tunnel keys.
[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         "Logical_Flow": {
36             "columns": {
37                 "logical_datapath": {"type": {"key": {"type": "uuid",
38                                                       "refTable": "Datapath_Binding"}}},
39                 "pipeline": {"type": {"key": {"type": "string",
40                                       "enum": ["set", ["ingress",
41                                                        "egress"]]}}},
42                 "table_id": {"type": {"key": {"type": "integer",
43                                               "minInteger": 0,
44                                               "maxInteger": 15}}},
45                 "priority": {"type": {"key": {"type": "integer",
46                                               "minInteger": 0,
47                                               "maxInteger": 65535}}},
48                 "match": {"type": "string"},
49                 "actions": {"type": "string"}},
50             "isRoot": true},
51         "Multicast_Group": {
52             "columns": {
53                 "datapath": {"type": {"key": {"type": "uuid",
54                                               "refTable": "Datapath_Binding"}}},
55                 "name": {"type": "string"},
56                 "tunnel_key": {
57                     "type": {"key": {"type": "integer",
58                                      "minInteger": 32768,
59                                      "maxInteger": 65535}}},
60                 "ports": {"type": {"key": {"type": "uuid",
61                                            "refTable": "Port_Binding",
62                                            "refType": "weak"},
63                                    "min": 1, "max": "unlimited"}}},
64             "indexes": [["datapath", "tunnel_key"],
65                         ["datapath", "name"]],
66             "isRoot": true},
67         "Datapath_Binding": {
68             "columns": {
69                 "tunnel_key": {
70                      "type": {"key": {"type": "integer",
71                                       "minInteger": 1,
72                                       "maxInteger": 16777215}}},
73                 "external_ids": {
74                     "type": {"key": "string", "value": "string",
75                              "min": 0, "max": "unlimited"}}},
76             "indexes": [["tunnel_key"]],
77             "isRoot": true},
78         "Port_Binding": {
79             "columns": {
80                 "logical_port": {"type": "string"},
81                 "type": {"type": "string"},
82                 "options": {
83                      "type": {"key": "string",
84                               "value": "string",
85                               "min": 0,
86                               "max": "unlimited"}},
87                 "datapath": {"type": {"key": {"type": "uuid",
88                                               "refTable": "Datapath_Binding"}}},
89                 "tunnel_key": {
90                      "type": {"key": {"type": "integer",
91                                       "minInteger": 1,
92                                       "maxInteger": 32767}}},
93                 "parent_port": {"type": {"key": "string", "min": 0, "max": 1}},
94                 "tag": {
95                      "type": {"key": {"type": "integer",
96                                       "minInteger": 0,
97                                       "maxInteger": 4095},
98                               "min": 0, "max": 1}},
99                 "chassis": {"type": {"key": {"type": "uuid",
100                                              "refTable": "Chassis",
101                                              "refType": "weak"},
102                                      "min": 0, "max": 1}},
103                 "mac": {"type": {"key": "string",
104                                  "min": 0,
105                                  "max": "unlimited"}}},
106             "indexes": [["datapath", "tunnel_key"], ["logical_port"]],
107             "isRoot": true}},
108     "version": "1.0.0"}