Bug 5437: Issue accessing mounted device supporting OpenConfig BGP. 76/35576/1
authorPeter Kajsa <pkajsa@cisco.com>
Tue, 1 Mar 2016 09:52:16 +0000 (10:52 +0100)
committerPeter Kajsa <pkajsa@cisco.com>
Tue, 1 Mar 2016 13:26:59 +0000 (14:26 +0100)
commit222e0fcb728c02708f78b9c51f3b1a94aed654c5
treeddea9a5bb93068466c0fb37b4c28f7b5a6bd3d50
parent2584e2d861ae6bd9aefabbbe29ba1af43d3e7dac
Bug 5437: Issue accessing mounted device supporting OpenConfig BGP.

Yangtools evaluated a relative path of leafref in the incorrect context.
Relative path of leafref should be evaluated in the final context of leafref node.

Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
Change-Id: I24821d1b12d4456058e0ec1049542972fe29b903
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/SchemaContextUtil.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/test/Bug5437.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug5437/foo.yang [new file with mode: 0644]