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 | 1 +
 ovn/ovn-nb.xml       | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/ovn/ovn-nb.ovsschema b/ovn/ovn-nb.ovsschema
index b45723c..dfa7f81 100644
--- a/ovn/ovn-nb.ovsschema
+++ b/ovn/ovn-nb.ovsschema
@@ -3,6 +3,7 @@
     "tables": {
         "Logical_Switch": {
             "columns": {
+                "name": {"type": "string"},
                 "router_port": {"type": {"key": {"type": "uuid",
                                                  "refTable": 
"Logical_Router_Port",
                                                  "refType": "strong"},
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

Reply via email to