ovn-nb: Add 'name' field to Logical Router
authorGal Sagie <gal.sagie@gmail.com>
Wed, 8 Jul 2015 06:44:33 +0000 (09:44 +0300)
committerBen Pfaff <blp@nicira.com>
Tue, 14 Jul 2015 21:26:37 +0000 (14:26 -0700)
Adding a name identifier will increase convinence
for Openstack (or Other CMS) that want to identify
the logical router (or store the CMS id in the router name)

Signed-off-by: Gal Sagie <gal.sagie@gmail.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ovn/ovn-nb.ovsschema
ovn/ovn-nb.xml

index 782e0f2..8fe378a 100644 (file)
@@ -59,6 +59,7 @@
             "isRoot": false},
         "Logical_Router": {
             "columns": {
+                "name": {"type": "string"},
                 "ports": {"type": {"key": {"type": "uuid",
                                            "refTable": "Logical_Router_Port",
                                            "refType": "weak"},
index cafba14..266e6a4 100644 (file)
       Each row represents one L3 logical router.
     </p>
 
+    <column name="name">
+      <p>
+        A name for the logical router.  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 router's UUID should be used as the unique identifier.
+      </p>
+    </column>
+
     <column name="ports">
       The router's ports.  This is a set of weak references, so a <ref
       table="Logical_Switch"/> must also refer to any given <ref