b45723cae6e6a908d092b59243e7a38244698b00
[cascardo/ovs.git] / ovn / ovn-nb.ovsschema
1 {
2     "name": "OVN_Northbound",
3     "tables": {
4         "Logical_Switch": {
5             "columns": {
6                 "router_port": {"type": {"key": {"type": "uuid",
7                                                  "refTable": "Logical_Router_Port",
8                                                  "refType": "strong"},
9                                          "min": 0, "max": 1}},
10                 "external_ids": {
11                     "type": {"key": "string", "value": "string",
12                              "min": 0, "max": "unlimited"}}}},
13         "Logical_Port": {
14             "columns": {
15                 "lswitch": {"type": {"key": {"type": "uuid",
16                                              "refTable": "Logical_Switch",
17                                              "refType": "strong"}}},
18                 "name": {"type": "string"},
19                 "macs": {"type": {"key": "string",
20                                   "min": 0,
21                                   "max": "unlimited"}},
22                 "port_security": {"type": {"key": "string",
23                                            "min": 0,
24                                            "max": "unlimited"}},
25                 "up": {"type": {"key": "boolean", "min": 0, "max": 1}},
26                 "external_ids": {
27                     "type": {"key": "string", "value": "string",
28                              "min": 0, "max": "unlimited"}}},
29             "indexes": [["name"]]},
30         "ACL": {
31             "columns": {
32                 "lswitch": {"type": {"key": {"type": "uuid",
33                                              "refTable": "Logical_Switch",
34                                              "refType": "strong"}}},
35                 "priority": {"type": {"key": {"type": "integer",
36                                               "minInteger": 0,
37                                               "maxInteger": 65535}}},
38                 "match": {"type": "string"},
39                 "action": {"type": {"key": {"type": "string",
40                                             "enum": ["set", ["allow", "allow-related", "drop", "reject"]]}}},
41                 "log": {"type": "boolean"},
42                 "external_ids": {
43                     "type": {"key": "string", "value": "string",
44                              "min": 0, "max": "unlimited"}}}},
45         "Logical_Router": {
46             "columns": {
47                 "ip": {"type": "string"},
48                 "default_gw": {"type": {"key": "string", "min": 0, "max": 1}},
49                 "external_ids": {
50                     "type": {"key": "string", "value": "string",
51                              "min": 0, "max": "unlimited"}}}},
52         "Logical_Router_Port": {
53             "columns": {
54                 "router": {"type": {"key": {"type": "uuid",
55                                             "refTable": "Logical_Router",
56                                             "refType": "strong"}}},
57                 "network": {"type": "string"},
58                 "mac": {"type": "string"},
59                 "external_ids": {
60                     "type": {"key": "string", "value": "string",
61                              "min": 0, "max": "unlimited"}}}}},
62     "version": "1.0.0"}