Bug 2834: Fix Restconf POST to wait for completion
authorRyan Goulding <ryandgoulding@gmail.com>
Fri, 13 Mar 2015 15:15:32 +0000 (11:15 -0400)
committerRyan Goulding <ryandgoulding@gmail.com>
Fri, 13 Mar 2015 20:05:05 +0000 (16:05 -0400)
commit54619379a1609667271835d9e67b88d6464de359
tree6ec0dc6510b7731da910da58f565098697f3a377
parent03c7bbf4867a152e5275bd0a251ef69157938d58
Bug 2834: Fix Restconf POST to wait for completion

This changeset introduces a blocking mechanism for Restconf POST to ensure that
the transaction completes before a response is returned, as is consistent with
Restconf PUT behavior.  checkedGet() is utilized to ensure write transaction
completion.

Change-Id: I74f68b883f6037ec62644a468d3cbb9370d8d25f
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfImpl.java
opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestPostOperationTest.java