Bug 7844 - Unable to create LeafRefContext for leafref 46/56946/5
authorPeter Kajsa <pkajsa@cisco.com>
Fri, 12 May 2017 12:10:50 +0000 (14:10 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 16 May 2017 23:34:13 +0000 (23:34 +0000)
commit32d07b64153bd33ea76f9bf8a320102c78ef4543
tree4860732fc343cc1227ecf3775282f0c6cf8075a0
parent5190fa2a29692f8200eb971b6819c38cdeae5d38
Bug 7844 - Unable to create LeafRefContext for leafref

In order to get correct namespace for a prefix used in a leafref
path we need to find the module which contains definition
of leafref path and then a prefix need to be resolved based on
imports of this module.

Change-Id: Icfb599783e90e44935d5e18eea23b0ac0d86cbf0
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefContextTreeBuilder.java
yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/leafref/Bug7844Test.java [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug7844/bar.yang [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug7844/baz.yang [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug7844/foo.yang [new file with mode: 0644]