Add a description to "rate" in the cars model
[controller.git] / opendaylight / md-sal / samples / clustering-test-app / model / src / main / yang / car.yang
index d9cfb6b1d5872f79a695410cf52d100fd6094e70..35e82039a3233b3d0308af71c109b3fda88e8efe 100644 (file)
@@ -59,6 +59,43 @@ module car {
        uses car-entry;
       }
     }
+    
+    rpc stress-test {
+        input {
+            leaf rate {
+              type uint16;
+              description "The rate is a measure of the number of car-entry(s) added per second.
+                           Thus the rate is measured in terms of transactions per second.  The
+                           rate is not necessary achievable;  the controller may not keep up with
+                           the specified value.  In this instance, rate is considered maximum rate.";
+            }
+
+            leaf count {
+              type uint16;
+              default 0;
+              description "Number of cars to create. Zero implies unlimited cars; use
+                           stop-stress-test rpc to stop the test.";
+            }
+        }
+    }
+    
+    rpc stop-stress-test {
 
+    }
+
+    rpc register-ownership {
+        input {
+            leaf car-id {
+                type string;
+              }
+        }
+    }
     
+    rpc unregister-ownership {
+        input {
+            leaf car-id {
+                type string;
+              }
+        }
+    }
 }
\ No newline at end of file