Consider AugmentationNodes when direct descendant is not found 44/75944/1
authorMarek Gradzki <mgradzki@cisco.com>
Tue, 14 Aug 2018 08:05:37 +0000 (10:05 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 10 Sep 2018 17:07:03 +0000 (17:07 +0000)
commit63345b3a904073754de966a3b56037ba08af7622
tree87c0814c63691dd29e68449b2ba0ea3f97feecc0
parenta56737f21dee9cba318067f92176e7208abba4af
Consider AugmentationNodes when direct descendant is not found

With previous refactors it is quite easy to arrive at a simple
solution to take augmentations into account. This also

This includes a unit test from upstream based on afi-safi-name
with bgp-openconfig-extensions.

JIRA: YANGTOOLS-892
Change-Id: I237ed2c6cbed458a2109a48b468a30650f103a48
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit e4777b6feff804cdcf633c28d4b654b0e885dbd1)
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/Yangtools892Test.java [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yangtools892/bgp-test-extensions.yang [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yangtools892/neighbour.xml [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yangtools892/peer-groups.xml [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yangtools892/test-bgp-multiprotocol.yang [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yangtools892/test-bgp-types.yang [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yangtools892/test-bgp.yang [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yangtools892/test-network-instance.yang [new file with mode: 0644]
yang/yang-data-codec-xml/src/test/resources/yangtools892/test-policy-types.yang [new file with mode: 0644]
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefValidation.java