BUG-7868: perform checks before starting modifications 11/55211/2
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 13:13:10 +0000 (15:13 +0200)
commit7f898edbc352f41c212146994f8409c89d855ef5
tree5ab9ad642bf0e965365264a3d235a4ec9e1b979f
parent574d8beb3e081cf6da0d7306cbc3ec5eaa9ca2bd
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