Bug 8449 - BindingToNormalizedNodeCodec fails to deserialize union of leafrefs
authorJakub Toth <jakub.toth@pantheon.tech>
Fri, 21 Jul 2017 09:58:08 +0000 (11:58 +0200)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 19 Jun 2024 00:41:21 +0000 (10:41 +1000)
commit55943efa7add3ba1223427d8ba5c1e4c59c837b5
treec7b380547d1615cda8ec400c7cc55a5044a4436e
parent5f2ce00536fab4b5edb3f4011849917f47433d2d
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-test-model/src/main/yang/bug8449.yang [new file with mode: 0644]