Account for reported UNMODIFIED nodes 69/80269/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Feb 2019 16:25:47 +0000 (17:25 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Feb 2019 16:25:47 +0000 (17:25 +0100)
commitbd453654173fdb8109cb86413daa245d9d109081
tree6d1d17c818ad771408aa28dc6862aeb75c1d5c4c
parent5cf24612767cab223deff88e24068fbd815f4af3
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>
binding/mdsal-binding-dom-adapter/src/main/java/org/opendaylight/mdsal/binding/dom/adapter/LazyDataObjectModification.java