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