Fix clustering-test app rpcs to add new data ensuring parents 15/22015/2
authorMoiz Raja <moraja@cisco.com>
Fri, 5 Jun 2015 20:54:35 +0000 (13:54 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Sat, 6 Jun 2015 01:31:46 +0000 (01:31 +0000)
commit76420b45de7d7979a6da09a3a3268496f48e3fb7
tree7fbc5426e84dff96c81762fc101fec7c209597f1
parent1b37a887301c6b9159ddb76492c4a3a820c0dfe8
Fix clustering-test app rpcs to add new data ensuring parents

The add-person rpc needs to pass true for ensureParents when adding
a person into the datastore. This ensures that it can be called on
an empty model.

Similarly when the CarBought notification is received and we try to
add a car-person to the datastore we need to do it with ensureParents
so that the data can be added to an empty model.

Change-Id: I551038298d635ff6daed0f5dae49a6eda86a24cb
Signed-off-by: Moiz Raja <moraja@cisco.com>
(cherry picked from commit c154b24508a991092771901f0ee444e2c4ba096f)
opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/listener/PeopleCarListener.java
opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/PeopleProvider.java