BUG 2468 - IdentityValuesDTO to string class cast exception. 84/13684/2
authorJozef Gloncak <jgloncak@cisco.com>
Tue, 16 Dec 2014 15:49:40 +0000 (16:49 +0100)
committerJozef Gloncak <jgloncak@cisco.com>
Wed, 7 Jan 2015 07:06:09 +0000 (07:06 +0000)
commit508aa010e688575a1c8eeb840d00a5e3f39c25fa
tree0fcadbc53787b1863a2efe1c15052e9a97b775ba
parent488cc48063a540a046084b398c72e5c58d2c7288
BUG 2468 - IdentityValuesDTO to string class cast exception.

If leaf had type which is definined in other module (imported) via typedef
and this type is leafref then it wasn't possible correctly resolve base
type of referenced type.

New method for this resolution was implemented and is now called.

Also test for this case was added

Merge precondition:
yangtools: https://git.opendaylight.org/gerrit/13683

Change-Id: If00db3a6297b5a0ea657acb469f4f49f350f8c63
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfImpl.java
opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/json/to/cnsn/test/JsonLeafrefToCnSnTest.java
opendaylight/md-sal/sal-rest-connector/src/test/resources/json-to-cnsn/leafref/augment-leafref-module [new file with mode: 0644]
opendaylight/md-sal/sal-rest-connector/src/test/resources/json-to-cnsn/leafref/json/data.json
opendaylight/md-sal/sal-rest-connector/src/test/resources/json-to-cnsn/leafref/leafref-module