vtep: Make stats and status columns ephemeral.
authorJustin Pettit <jpettit@nicira.com>
Thu, 8 Oct 2015 19:56:53 +0000 (12:56 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 14 Oct 2015 14:36:03 +0000 (07:36 -0700)
These fields don't need to be stored, and it causes a lot of unnecessary
writes to the database log.

This commit also fixes a couple of trivial indentation issues with
previous ephemeral declarations.

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

index c01eb77..1375173 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "hardware_vtep",
-  "cksum": "262972511 10369",
+  "cksum": "2177247725 10499",
   "tables": {
     "Global": {
       "columns": {
@@ -52,7 +52,8 @@
                            "minInteger": 0, "maxInteger": 4095},
                    "value": {"type": "uuid",
                              "refTable": "Logical_Binding_Stats"},
-                   "min": 0, "max": "unlimited"}},
+                   "min": 0, "max": "unlimited"},
+          "ephemeral": true},
         "port_fault_status": {
           "type": {
             "key": "string", "min": 0, "max": "unlimited"},
               "min": 0, "max": "unlimited"}},
         "bfd_status": {
           "type": {"key": "string", "value": "string",
-              "min": 0, "max": "unlimited"}}}},
+              "min": 0, "max": "unlimited"},
+          "ephemeral": true}}},
     "Logical_Binding_Stats": {
       "columns": {
-        "bytes_from_local": {"type": "integer"},
-        "packets_from_local": {"type": "integer"},
-        "bytes_to_local": {"type": "integer"},
-        "packets_to_local": {"type": "integer"}}},
+        "bytes_from_local": {"type": "integer", "ephemeral": true},
+        "packets_from_local": {"type": "integer", "ephemeral": true},
+        "bytes_to_local": {"type": "integer", "ephemeral": true},
+        "packets_to_local": {"type": "integer", "ephemeral": true}}},
     "Logical_Switch": {
       "columns": {
         "name": {"type": "string"},
         "acle_fault_status": {
           "type": {
             "key": "string", "min": 0, "max": "unlimited"},
-            "ephemeral": true}},
+          "ephemeral": true}},
        "isRoot": true},
     "ACL": {
       "columns": {
         "acl_fault_status": {
           "type": {
             "key": "string", "min": 0, "max": "unlimited"},
-            "ephemeral": true}},
+          "ephemeral": true}},
       "indexes": [["acl_name"]],
       "isRoot": true},
     "Manager": {
           "ephemeral": true}},
       "indexes": [["target"]],
       "isRoot": false}},
-  "version": "1.4.0"}
+  "version": "1.4.1"}