Add missing license headers
[controller.git] / benchmark / api / src / main / yang / dsbenchmark.yang
index d56c1852c1a5170e0894499ae039377cab5df341..635ea805bb7e2d4fb45ee4d36ac4182b261f8f6b 100644 (file)
@@ -3,6 +3,13 @@ module dsbenchmark {
     namespace "urn:opendaylight:params:xml:ns:yang:dsbenchmark";
     prefix "dsbenchmark";
 
+    description
+        "Copyright © 2015, 2018 Cisco Systems, Inc. and others.
+
+        This program and the accompanying materials are made available under the
+        terms of the Eclipse Public License v1.0 which accompanies this distribution,
+        and is available at http://www.eclipse.org/legal/epl-v10.html";
+
     revision "2015-01-05" {
         description "Initial revision of dsbenchmark model";
     }
@@ -85,7 +92,7 @@ module dsbenchmark {
                     enum "DELETE" {
                         value 3;
                         description
-                            "Delete items from a list sotred in the data store";
+                            "Delete items from a list sorted in the data store";
                     }
                     enum "READ" {
                         value 4;
@@ -144,19 +151,27 @@ module dsbenchmark {
                 default 100000;
                 description
                   "Number of elements in the OuterList";
-              }
+            }
             leaf innerElements {
                 type uint32;
                 default 1;
                 description
                   "Number of elements in the InnerList";
-              }
+            }
             leaf putsPerTx {
                 type uint32;
                 default 1;
                 description
-                  "Number of write operations (PUT, MERGE, or DELETE) per transaction submit";
-              }
+                  "Number of write operations (PUT, MERGE, or DELETE)
+                   per transaction submit";
+            }
+            leaf listeners {
+                type uint32;
+                default 0;
+                description
+                    "Number of data tree change listeners listening for
+                    changes on the test exec tree.";
+            }
         }
         output {
             leaf status {
@@ -174,32 +189,41 @@ module dsbenchmark {
                 }
                 description
                     "Indicates whether the test finished successfuly";
-               }
+            }
             leaf listBuildTime {
-                type uint32;
-                default 1;
+                type int64;
+                units microseconds;
                 description
                   "The time it took to build the list of lists";
-              }
+            }
             leaf execTime {
-                type uint32;
-                default 1;
+                type int64;
+                units microseconds;
                 description
                   "The time it took to execute all transactions";
-              }
+            }
             leaf txOk {
                 type uint32;
-                default 1;
                 description
                   "The number of successful transactions";
-              }
+            }
             leaf txError {
                 type uint32;
-                default 1;
                 description
                   "The number of failed transactions";
-              }
-
+            }
+            leaf ntfOk {
+                type uint32;
+                description
+                  "The number of successfully received data tree change
+                   notifications";
+            }
+            leaf dataChangeEventsOk {
+                type uint32;
+                description
+                  "The number of data change events received in data tree
+                   change notifications";
+            }
         }
     }