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=50df56f78cea88482211ed5960ebd2d91138143a;hp=d9cfb6b1d5872f79a695410cf52d100fd6094e70;hb=e0d230dfee7bcc7e384e2d8f933854ad449d441e;hpb=4019c9fd2ad99628dd790acc1ad4c104f48b6428 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..50df56f78c 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 @@ -6,7 +6,7 @@ module car { prefix car; - import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; } + import ietf-inet-types { prefix "inet"; revision-date 2013-07-15; } organization "Netconf Central"; @@ -59,6 +59,82 @@ 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 uint32; + default 0; + description "Number of cars to create. Zero implies unlimited cars; use + stop-stress-test rpc to stop the test."; + } + } + } -} \ No newline at end of file + rpc stop-stress-test { + output { + leaf success-count { + type uint32; + default 0; + description "Total number of cars created when running stess-test rpc"; + } + + leaf failure-count { + type uint32; + default 0; + description "Total number of cars failed when running stess-test rpc"; + } + } + } + + rpc register-ownership { + input { + leaf car-id { + type string; + } + } + } + + rpc unregister-ownership { + input { + leaf car-id { + type string; + } + } + } + + rpc register-logging-dcl { + description "Registers a basic logging DCL on the cars container. This is useful + for analyzing effects of DCL on a long, flat list."; + } + + rpc unregister-logging-dcls { + description "Unregisters the logging DCL(s) for the cars container."; + } + + rpc register-logging-dtcl { + description "Registers a basic logging DTCL on the cars container. This is useful + for analyzing the effects of DTCL on a long, flat list."; + } + + rpc unregister-logging-dtcls { + description "Unregisters the logging DTCL(s) for the cars container."; + } + + rpc register-commit-cohort { + description "Registers a sample commit cohort that validates car entry input."; + } + + rpc unregister-commit-cohort { + description "Unregisters the sample commit cohort."; + } + +}