Bug-4234 - Add count field to cars stress-test RPC.
[controller.git] / opendaylight / md-sal / samples / clustering-test-app / model / src / main / yang / car.yang
index d9cfb6b1d5872f79a695410cf52d100fd6094e70..eb02be7f0f1220c725346210d285aafa192a9ef8 100644 (file)
@@ -59,6 +59,22 @@ module car {
        uses car-entry;
       }
     }
+    
+    rpc stress-test {
+        input {
+            leaf rate {
+              type uint16;
+            }
 
+            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 {
+    }
 }
\ No newline at end of file