MDSAL-269: fix missing identityref union members 57/67757/5
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 30 Jan 2018 18:14:12 +0000 (19:14 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 7 Feb 2018 12:54:47 +0000 (12:54 +0000)
commite4d55d1d1ea6c128b872570e69c7ea2ae69fc2a1
treead2c049a2d0d4f31a0e18f5045d0f3b976e6ee45
parent9d1f691530d9e0d632519aabe6ac28fca6b809c6
MDSAL-269: fix missing identityref union members

Due to a API consistency issue in binding specification typedefs
which point to leafref and identityref types do not get a generated
encapsulation class.

BUG-8449/MDSAL-253 has dealt with the leafref case, but has omitted
identityref case. This patch corrects the situation, providing a bit
of background and a testcase.

Change-Id: Ib4247e0690c2aaa89aef51b3986bf848ce6b8192
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
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/Mdsal269Test.java [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/test/resources/mdsal269.yang [new file with mode: 0644]