Bug 8449 - BindingToNormalizedNodeCodec fails to deserialize union of leafrefs 31/60631/3
authorJakub Toth <jakub.toth@pantheon.tech>
Fri, 21 Jul 2017 09:58:08 +0000 (11:58 +0200)
committerJakub Toth <jakub.toth@pantheon.tech>
Fri, 21 Jul 2017 21:05:17 +0000 (21:05 +0000)
commitb7c1f342d201c944265e1328fc62c6c045f585af
tree0a986a19f3b81ea59f4c5b4fa854e076b50f980d
parentb2aa3f4c15e477d6c19bc1c699fa26d208d94e2b
Bug 8449 - BindingToNormalizedNodeCodec fails to deserialize union of leafrefs

Fix problem of leafref in typedef called from union
 *generated part
   *generating of new property of GTO for leaf's union type of typedef
     according to return type of referenced leaf via leafref from typedef
 *codec part
   *getting codec of leaf type according to new generator part of leafref
    in typedef
 *tests

Change-Id: Ibffe4e51ef66f1911c32c71d4f08bbdbdd40e234
Signed-off-by: Jakub Toth <jakub.toth@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/UnionTypeCodec.java
binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/yangtools/binding/data/codec/test/LeafrefSerializeDeserializeTest.java [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/yang/types/TypeProviderImpl.java
binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/mdsal/binding/generator/impl/UnionTypeDefTest.java
binding/mdsal-binding-generator-impl/src/test/resources/leafref_typedef_union/bug8449.yang [new file with mode: 0644]
binding/mdsal-binding-generator-util/src/main/java/org/opendaylight/mdsal/binding/model/util/generated/type/builder/AbstractTypeMemberBuilder.java
binding/mdsal-binding-test-model/src/main/yang/bug8449.yang [new file with mode: 0644]