Allow list elements to be interleaved 57/90357/1
authorJamo Luhrsen <jluhrsen@gmail.com>
Sun, 31 May 2020 05:29:52 +0000 (22:29 -0700)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Jun 2020 13:49:57 +0000 (15:49 +0200)
commit4a8ac446f3217ffa34acd28dd2a6c5f0978cb450
tree1a4f010bb676d2ebadbe054210dede6084e7932e
parent293987d4e11c7f0a9aa13da1f36c1bb1f9159cd7
Allow list elements to be interleaved

If a list node A is parsed then list node B and another list with A
is given after, it fails to parse as a duplicate.

Skip checking for duplicate nodes if the node being parsed is found
to correspond to ListEffectiveStatement.

JIRA: YANGTOOLS-1107
Change-Id: I4dae263a1e41444db7a6cce6eb958f397c801070
Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit eb4617a9867325921e0fd9660898c3fc4dfc8d11)
yang/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlParserStream.java
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlToNormalizedNodesTest.java
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/YT1107Test.java [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yt1107/yt1107.xml [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yt1107/yt1107.yang [new file with mode: 0644]
yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/ChoiceNodeDataWithSchema.java
yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/CompositeNodeDataWithSchema.java
yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/DuplicateChildNodeRejectedException.java [new file with mode: 0644]