Add a name column the logical switch table of the ovn-nb database schema. This column has no special meaning. It's purpose is only to provide convenience for humans interacting with the ovn-nb database.
Signed-off-by: Russell Bryant <rbry...@redhat.com> --- ovn/ovn-nb.ovsschema | 4 +++- ovn/ovn-nb.xml | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ovn/ovn-nb.ovsschema b/ovn/ovn-nb.ovsschema index b45723c..21e9ff6 100644 --- a/ovn/ovn-nb.ovsschema +++ b/ovn/ovn-nb.ovsschema @@ -3,13 +3,15 @@ "tables": { "Logical_Switch": { "columns": { + "name": {"type": "string"}, "router_port": {"type": {"key": {"type": "uuid", "refTable": "Logical_Router_Port", "refType": "strong"}, "min": 0, "max": 1}}, "external_ids": { "type": {"key": "string", "value": "string", - "min": 0, "max": "unlimited"}}}}, + "min": 0, "max": "unlimited"}}}, + "indexes": [["name"]]}, "Logical_Port": { "columns": { "lswitch": {"type": {"key": {"type": "uuid", diff --git a/ovn/ovn-nb.xml b/ovn/ovn-nb.xml index 9b245b1..f68bd71 100644 --- a/ovn/ovn-nb.xml +++ b/ovn/ovn-nb.xml @@ -37,6 +37,15 @@ column="lswitch"/> column points to its row. </p> + <column name="name"> + <p> + A name for the logical switch. This name has no special meaning or purpose + other than to provide convenience for human interaction with the ovn-nb + database. There is no requirement for the name to be unique. The + logical switch's UUID should be used as the unique identifier. + </p> + </column> + <column name="router_port"> <p> The router port to which this logical switch is connected, or empty if -- 2.1.0 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev