Account for reported UNMODIFIED nodes 22/80322/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Feb 2019 16:25:47 +0000 (17:25 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 13 Feb 2019 18:38:32 +0000 (18:38 +0000)
commit700db772a980b4b7c743540eb325918f98c32bdd
tree39bc45079e1bfe97326b81d7d96fa9b48a384f57
parent7c719c40d7356806cafeeaec3523567fef994409
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 bd453654173fdb8109cb86413daa245d9d109081)
binding/mdsal-binding-dom-adapter/src/main/java/org/opendaylight/mdsal/binding/dom/adapter/LazyDataObjectModification.java