Bug 4969: Unable to find base type of leafref for old yang parser types. 51/33851/1
authorPeter Kajsa <pkajsa@cisco.com>
Mon, 1 Feb 2016 13:00:10 +0000 (14:00 +0100)
committerPeter Kajsa <pkajsa@cisco.com>
Mon, 1 Feb 2016 13:00:10 +0000 (14:00 +0100)
commit2bf36e1205b58767daf67e9e532cbc95e9ea5a48
treede6683215f73fe9d864e52330f3791d68e5a2af0
parent95057cb3be0afe747bcde4664c1368580f9b324f
Bug 4969: Unable to find base type of leafref for old yang parser types.

Added backward compatibility with old yang parser into
the method SchemaContextUtil.findParentModuleOfReferencingType.

Change-Id: I3e49296cb8beb45c67cda99986bffa7a8ba1a022
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
yang/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/retest/Bug4969Test.java
yang/yang-data-codec-gson/src/test/resources/leafref/json/data.json [new file with mode: 0644]
yang/yang-data-codec-gson/src/test/resources/leafref/yang/augment-leafref-module.yang [new file with mode: 0644]
yang/yang-data-codec-gson/src/test/resources/leafref/yang/leafref-module.yang [new file with mode: 0644]
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/SchemaContextUtil.java