Bug 8713 - BGP models not compatible with leafref context 90/62890/2
authorPeter Kajsa <pkajsa@cisco.com>
Thu, 7 Sep 2017 11:18:22 +0000 (13:18 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 27 Sep 2017 08:22:11 +0000 (08:22 +0000)
commite3700b025645e272a68dd65b07f13bc37c85377c
treec019a5bcac88863207c219d42b8100baf29fe20b
parente46ba4530885acbd9a585605c50b4c76bc1a4527
Bug 8713 - BGP models not compatible with leafref context

Lookup of parent module should be performed based on the first path
argument from root not the last one.

Change-Id: Ic8e0dc901056caf93e4fc5266334434bd067d9ab
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
(cherry picked from commit f1193617e74d40724cc53df1f5a4f007dc135f2b)
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefContextBuilder.java
yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/leafref/context/Bug8713Test.java [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug8713/bar.yang [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug8713/foo.yang [new file with mode: 0644]