Include headers where ovs_rundir is used.
[cascardo/ovs.git] / ovn / ovn-nb.ovsschema
1 {
2     "name": "OVN_Northbound",
3     "tables": {
4         "Logical_Switch": {
5             "columns": {
6                 "name": {"type": "string"},
7                 "ports": {"type": {"key": {"type": "uuid",
8                                            "refTable": "Logical_Port",
9                                            "refType": "strong"},
10                                    "min": 0,
11                                    "max": "unlimited"}},
12                 "acls": {"type": {"key": {"type": "uuid",
13                                           "refTable": "ACL",
14                                           "refType": "strong"},
15                                   "min": 0,
16                                   "max": "unlimited"}},
17                 "router_port": {"type": {"key": {"type": "uuid",
18                                                  "refTable": "Logical_Router_Port",
19                                                  "refType": "strong"},
20                                          "min": 0, "max": 1}},
21                 "external_ids": {
22                     "type": {"key": "string", "value": "string",
23                              "min": 0, "max": "unlimited"}}},
24             "isRoot": true},
25         "Logical_Port": {
26             "columns": {
27                 "name": {"type": "string"},
28                 "type": {"type": "string"},
29                 "options": {
30                      "type": {"key": "string",
31                               "value": "string",
32                               "min": 0,
33                               "max": "unlimited"}},
34                 "parent_name": {"type": {"key": "string", "min": 0, "max": 1}},
35                 "tag": {
36                      "type": {"key": {"type": "integer",
37                                       "minInteger": 0,
38                                       "maxInteger": 4095},
39                               "min": 0, "max": 1}},
40                 "macs": {"type": {"key": "string",
41                                   "min": 0,
42                                   "max": "unlimited"}},
43                 "port_security": {"type": {"key": "string",
44                                            "min": 0,
45                                            "max": "unlimited"}},
46                 "up": {"type": {"key": "boolean", "min": 0, "max": 1}},
47                 "enabled": {"type": {"key": "boolean", "min": 0, "max": 1}},
48                 "external_ids": {
49                     "type": {"key": "string", "value": "string",
50                              "min": 0, "max": "unlimited"}}},
51             "indexes": [["name"]],
52             "isRoot": false},
53         "ACL": {
54             "columns": {
55                 "priority": {"type": {"key": {"type": "integer",
56                                               "minInteger": 1,
57                                               "maxInteger": 65534}}},
58                 "direction": {"type": {"key": {"type": "string",
59                                             "enum": ["set", ["from-lport", "to-lport"]]}}},
60                 "match": {"type": "string"},
61                 "action": {"type": {"key": {"type": "string",
62                                             "enum": ["set", ["allow", "allow-related", "drop", "reject"]]}}},
63                 "log": {"type": "boolean"},
64                 "external_ids": {
65                     "type": {"key": "string", "value": "string",
66                              "min": 0, "max": "unlimited"}}},
67             "isRoot": false},
68         "Logical_Router": {
69             "columns": {
70                 "name": {"type": "string"},
71                 "ports": {"type": {"key": {"type": "uuid",
72                                            "refTable": "Logical_Router_Port",
73                                            "refType": "weak"},
74                                    "min": 0,
75                                    "max": "unlimited"}},
76                 "default_gw": {"type": {"key": "string", "min": 0, "max": 1}},
77                 "external_ids": {
78                     "type": {"key": "string", "value": "string",
79                              "min": 0, "max": "unlimited"}}},
80             "isRoot": true},
81         "Logical_Router_Port": {
82             "columns": {
83                 "name": {"type": "string"},
84                 "network": {"type": "string"},
85                 "mac": {"type": "string"},
86                 "external_ids": {
87                     "type": {"key": "string", "value": "string",
88                              "min": 0, "max": "unlimited"}}},
89             "isRoot": false}},
90     "version": "1.0.0"}