Bug-4234 - Add count field to cars stress-test RPC. 19/26419/2
authorShaleen Saxena <ssaxena@brocade.com>
Wed, 2 Sep 2015 17:19:51 +0000 (13:19 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Thu, 10 Sep 2015 14:41:02 +0000 (10:41 -0400)
commita24dce8bd21fdf3452086e307d2b4ecaafb73e42
tree5bc2f8a061a6a161b2c47220b57bba074a0fa522
parenta93bcbe711f66ef6ec7bc97972f108859c87a11e
Bug-4234 - Add count field to cars stress-test RPC.

Added a 'count' field to cars stress-test RPC. The test will stop
after the 'count' cars have been created. If count is zero, then
stress-test will continue till stop-stress-test rpc is given.

Also added some null checks for missing input fields. If rate is
zero, then an error is returned.

Change-Id: Id313f9094e8ca887993e4e8911d0a86b64db7303
Signed-off-by: Shaleen Saxena <ssaxena@brocade.com>
(cherry picked from commit 3abc8b4d3379109bd12aadbc01c0b134cbd268c5)
opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/car.yang
opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/CarProvider.java