ovn-nb: Add "enabled" column to Logical_Router_Port.
authorBen Pfaff <blp@nicira.com>
Thu, 8 Oct 2015 20:18:51 +0000 (13:18 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 17 Oct 2015 06:52:41 +0000 (23:52 -0700)
This is just for symmetry with Logical_Port, since it seems that if users
want to be able to disable switch ports they might want to disable router
ports as well.

There is no "up" column because a logical router port doesn't have the same
concept.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ovn/ovn-nb.ovsschema
ovn/ovn-nb.xml

index 9d254e8..d45a682 100644 (file)
@@ -1,7 +1,7 @@
 {
     "name": "OVN_Northbound",
     "version": "2.0.0",
-    "cksum": "1378979036 4524",
+    "cksum": "4186002454 4601",
     "tables": {
         "Logical_Switch": {
             "columns": {
@@ -85,6 +85,7 @@
                                           "refTable": "Logical_Router_Port",
                                           "refType": "strong"},
                                   "min": 0, "max": 1}},
+                "enabled": {"type": {"key": "boolean", "min": 0, "max": 1}},
                 "external_ids": {
                     "type": {"key": "string", "value": "string",
                              "min": 0, "max": "unlimited"}}},
index 9a7435b..ae0d8e2 100644 (file)
       The Ethernet address that belongs to this router port.
     </column>
 
+    <column name="enabled">
+      This column is used to administratively set port state.  If this column
+      is empty or is set to <code>true</code>, the port is enabled.  If this
+      column is set to <code>false</code>, the port is disabled.  A disabled
+      port has all ingress and egress traffic dropped.
+    </column>
+
     <group title="Attachment">
       <p>
         A given router port serves one of two purposes: