X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsamples%2Fclustering-test-app%2Fmodel%2Fsrc%2Fmain%2Fyang%2Fcar.yang;h=35e82039a3233b3d0308af71c109b3fda88e8efe;hp=d9cfb6b1d5872f79a695410cf52d100fd6094e70;hb=fe8e6082f593698758d3d496f130b556dae0c475;hpb=28b6378c12b00eb9110e87a15d6a829c33945c66 diff --git a/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/car.yang b/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/car.yang index d9cfb6b1d5..35e82039a3 100644 --- a/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/car.yang +++ b/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/car.yang @@ -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