Account for reported UNMODIFIED nodes 21/80321/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Feb 2019 16:00:14 +0000 (17:00 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 13 Feb 2019 18:38:24 +0000 (18:38 +0000)
commit49d3f525ad32215dc46d3cdcd9805ef42df667da
treef8017652f7affadcc823551c25d81aa93e32ed18
parent1b0d617ebc1990f9216170eafff1c85a203d40b8
Account for reported UNMODIFIED nodes

DataObjectModification has no way of expressing UNMODIFIED nodes,
but they can (and are) reported from DataTreeCandidateNode, hence
we end up reporting IllegalStateException when the user tries to
look at those nodes.

Make sure we take the node under consideration and do not report
unmodified children, hence preventing the ISE from happening.

JIRA: MDSAL-422
Change-Id: I34d36ae083c5ce3ad793eb584236f175f7a3a906
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 9d4ff4c4045fdef38e3940d336d2825df29c4d65)
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/LazyDataObjectModification.java