Fix clustering-test app rpcs to add new data ensuring parents 06/22006/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 00:34:54 +0000 (00:34 +0000)
commitc154b24508a991092771901f0ee444e2c4ba096f
treeaf15c2a5cbe29078491bd2618dc272fc02d714c1
parent40217346551e20a809df37cd92955cd63c61944f
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>
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