Add 'name' field to logical router port NB schema
[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                 "parent_name": {"type": {"key": "string", "min": 0, "max": 1}},
29                 "tag": {
30                      "type": {"key": {"type": "integer",
31                                       "minInteger": 0,
32                                       "maxInteger": 4095},
33                               "min": 0, "max": 1}},
34                 "macs": {"type": {"key": "string",
35                                   "min": 0,
36                                   "max": "unlimited"}},
37                 "port_security": {"type": {"key": "string",
38                                            "min": 0,
39                                            "max": "unlimited"}},
40                 "up": {"type": {"key": "boolean", "min": 0, "max": 1}},
41                 "enabled": {"type": {"key": "boolean", "min": 0, "max": 1}},
42                 "external_ids": {
43                     "type": {"key": "string", "value": "string",
44                              "min": 0, "max": "unlimited"}}},
45             "indexes": [["name"]],
46             "isRoot": false},
47         "ACL": {
48             "columns": {
49                 "priority": {"type": {"key": {"type": "integer",
50                                               "minInteger": 1,
51                                               "maxInteger": 65535}}},
52                 "match": {"type": "string"},
53                 "action": {"type": {"key": {"type": "string",
54                                             "enum": ["set", ["allow", "allow-related", "drop", "reject"]]}}},
55                 "log": {"type": "boolean"},
56                 "external_ids": {
57                     "type": {"key": "string", "value": "string",
58                              "min": 0, "max": "unlimited"}}},
59             "isRoot": false},
60         "Logical_Router": {
61             "columns": {
62                 "name": {"type": "string"},
63                 "ports": {"type": {"key": {"type": "uuid",
64                                            "refTable": "Logical_Router_Port",
65                                            "refType": "weak"},
66                                    "min": 0,
67                                    "max": "unlimited"}},
68                 "default_gw": {"type": {"key": "string", "min": 0, "max": 1}},
69                 "external_ids": {
70                     "type": {"key": "string", "value": "string",
71                              "min": 0, "max": "unlimited"}}},
72             "isRoot": true},
73         "Logical_Router_Port": {
74             "columns": {
75                 "name": {"type": "string"},
76                 "network": {"type": "string"},
77                 "mac": {"type": "string"},
78                 "external_ids": {
79                     "type": {"key": "string", "value": "string",
80                              "min": 0, "max": "unlimited"}}},
81             "isRoot": false}},
82     "version": "1.0.0"}