Bug 4948: Catch RuntimeException from ensureParentByMerge 57/32457/3
authorBalaji Varadaraju <bvaradar@brocade.com>
Wed, 13 Jan 2016 00:17:02 +0000 (18:17 -0600)
committerRyan Goulding <ryandgoulding@gmail.com>
Wed, 13 Jan 2016 15:30:27 +0000 (10:30 -0500)
commit7670ad6917512cdf725fcdcc7cbcff1ed4cf09f3
treecb063195f4c2667fb6578e56ff9e3b24478678fc
parentd9bdb945d336fc0278b64f0acac7bac3f3b65e44
Bug 4948: Catch RuntimeException from ensureParentByMerge

Made the calls to PUT and POST more robust. Caught the RuntimeException from
 the merge call in the EnsureParentsByMerge. If this fails then started
a new transaction and continue with the original PUT. This ensures when a device
is unable to handle the empty list/container merge it will still succeed with the
original request. Similar change has been made for POST.

Change-Id: Icd904b001806dcee2a02eb048ccce4d8d8b8bb9f
Signed-off-by: Balaji Varadaraju <bvaradar@brocade.com>
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/BrokerFacade.java