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