ovn: Add datapath column to the MAC_Binding table
[cascardo/ovs.git] / ovn / ovn-sb.ovsschema
1 {
2     "name": "OVN_Southbound",
3     "version": "1.6.0",
4     "cksum": "1715817174 6541",
5     "tables": {
6         "Chassis": {
7             "columns": {
8                 "name": {"type": "string"},
9                 "hostname": {"type": "string"},
10                 "encaps": {"type": {"key": {"type": "uuid",
11                                             "refTable": "Encap"},
12                                     "min": 1, "max": "unlimited"}},
13                 "vtep_logical_switches" : {"type": {"key": "string",
14                                                     "min": 0,
15                                                     "max": "unlimited"}},
16                 "external_ids": {
17                     "type": {"key": "string", "value": "string",
18                              "min": 0, "max": "unlimited"}}},
19             "isRoot": true,
20             "indexes": [["name"]]},
21         "Encap": {
22             "columns": {
23                 "type": {"type": {"key": {
24                            "type": "string",
25                            "enum": ["set", ["geneve", "stt", "vxlan"]]}}},
26                 "options": {"type": {"key": "string",
27                                      "value": "string",
28                                      "min": 0,
29                                      "max": "unlimited"}},
30                 "ip": {"type": "string"}}},
31         "Address_Set": {
32             "columns": {
33                 "name": {"type": "string"},
34                 "addresses": {"type": {"key": "string",
35                                        "min": 0,
36                                        "max": "unlimited"}}},
37             "indexes": [["name"]],
38             "isRoot": true},
39         "Logical_Flow": {
40             "columns": {
41                 "logical_datapath": {"type": {"key": {"type": "uuid",
42                                                       "refTable": "Datapath_Binding"}}},
43                 "pipeline": {"type": {"key": {"type": "string",
44                                       "enum": ["set", ["ingress",
45                                                        "egress"]]}}},
46                 "table_id": {"type": {"key": {"type": "integer",
47                                               "minInteger": 0,
48                                               "maxInteger": 15}}},
49                 "priority": {"type": {"key": {"type": "integer",
50                                               "minInteger": 0,
51                                               "maxInteger": 65535}}},
52                 "match": {"type": "string"},
53                 "actions": {"type": "string"},
54                 "external_ids": {
55                     "type": {"key": "string", "value": "string",
56                              "min": 0, "max": "unlimited"}}},
57             "isRoot": true},
58         "Multicast_Group": {
59             "columns": {
60                 "datapath": {"type": {"key": {"type": "uuid",
61                                               "refTable": "Datapath_Binding"}}},
62                 "name": {"type": "string"},
63                 "tunnel_key": {
64                     "type": {"key": {"type": "integer",
65                                      "minInteger": 32768,
66                                      "maxInteger": 65535}}},
67                 "ports": {"type": {"key": {"type": "uuid",
68                                            "refTable": "Port_Binding",
69                                            "refType": "weak"},
70                                    "min": 1, "max": "unlimited"}}},
71             "indexes": [["datapath", "tunnel_key"],
72                         ["datapath", "name"]],
73             "isRoot": true},
74         "Datapath_Binding": {
75             "columns": {
76                 "tunnel_key": {
77                      "type": {"key": {"type": "integer",
78                                       "minInteger": 1,
79                                       "maxInteger": 16777215}}},
80                 "external_ids": {
81                     "type": {"key": "string", "value": "string",
82                              "min": 0, "max": "unlimited"}}},
83             "indexes": [["tunnel_key"]],
84             "isRoot": true},
85         "Port_Binding": {
86             "columns": {
87                 "logical_port": {"type": "string"},
88                 "type": {"type": "string"},
89                 "options": {
90                      "type": {"key": "string",
91                               "value": "string",
92                               "min": 0,
93                               "max": "unlimited"}},
94                 "datapath": {"type": {"key": {"type": "uuid",
95                                               "refTable": "Datapath_Binding"}}},
96                 "tunnel_key": {
97                      "type": {"key": {"type": "integer",
98                                       "minInteger": 1,
99                                       "maxInteger": 32767}}},
100                 "parent_port": {"type": {"key": "string", "min": 0, "max": 1}},
101                 "tag": {
102                      "type": {"key": {"type": "integer",
103                                       "minInteger": 1,
104                                       "maxInteger": 4095},
105                               "min": 0, "max": 1}},
106                 "chassis": {"type": {"key": {"type": "uuid",
107                                              "refTable": "Chassis",
108                                              "refType": "weak"},
109                                      "min": 0, "max": 1}},
110                 "mac": {"type": {"key": "string",
111                                  "min": 0,
112                                  "max": "unlimited"}}},
113             "indexes": [["datapath", "tunnel_key"], ["logical_port"]],
114             "isRoot": true},
115         "MAC_Binding": {
116             "columns": {
117                 "logical_port": {"type": "string"},
118                 "ip": {"type": "string"},
119                 "mac": {"type": "string"},
120                 "datapath": {"type": {"key": {"type": "uuid",
121                                               "refTable": "Datapath_Binding"}}}},
122             "indexes": [["logical_port", "ip"]],
123             "isRoot": true},
124         "DHCP_Options": {
125             "columns": {
126                 "name": {"type": "string"},
127                 "code": {
128                     "type": {"key": {"type": "integer",
129                                      "minInteger": 0, "maxInteger": 254}}},
130                 "type": {
131                     "type": {"key": {
132                         "type": "string",
133                         "enum": ["set", ["bool", "uint8", "uint16", "uint32",
134                                          "ipv4", "static_routes", "str"]]}}}},
135             "isRoot": true}}}