BUG-7868: perform checks before starting modifications 05/55205/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 19 Apr 2017 11:10:28 +0000 (13:10 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 19 Apr 2017 11:10:28 +0000 (13:10 +0200)
commit3583194dd53ca09383fee9e50299a36a622895a1
tree60dd6950e9737766d80d09358864a103b78492ab
parentab15d2e60be01163485ac7465aa80047586188e8
BUG-7868: perform checks before starting modifications

The codepath for makeNormalPost() performs sub-optimal emulation
of create().

This patch changes the logic to first check for presence and then
perform modifications. This saves cycles as continuous modify/read
cycles incur heavy penalty on DataTree and also allows batching
of modification requests.

Change-Id: Ic8e18ada094334948170f2a147da806db7db1a16
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/BrokerFacade.java