Binding generator v2 - uses statement - uses inner type 99/61599/1
authorJie Han <han.jie@zte.com.cn>
Thu, 20 Jul 2017 07:02:27 +0000 (15:02 +0800)
committerJie Han <han.jie@zte.com.cn>
Mon, 14 Aug 2017 08:14:15 +0000 (16:14 +0800)
commitec6debe00d863ac5f841ace0223013b4973bab70
tree6f17a06f0cb85e5f38e33db58cc76aaed5e6a014
parent5718362398320d44ceeaec9ca8a576938f3d2c97
Binding generator v2 - uses statement - uses inner type

- for current implementation of yangtools does not copy "types" from groupings,
but the original definition of a type is reused, so we should find inner type
added by uses by original node.
  this patch should be merged with:
  - https://git.opendaylight.org/gerrit/60527
  - https://git.opendaylight.org/gerrit/60529

- add yangs and test

Change-Id: I4336bbf04c25b6caf2a1bd3101760fc3fc40421e
Signed-off-by: Jie Han <han.jie@zte.com.cn>
(cherry picked from commit b9086681167b83e5aa6887dabbb749807f4c6206)
binding2/mdsal-binding2-generator-impl/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/impl/GenHelperUtil.java
binding2/mdsal-binding2-generator-impl/src/test/java/org/opendaylight/mdsal/binding/javav2/generator/impl/BindingGeneratorImplTest.java
binding2/mdsal-binding2-generator-impl/src/test/resources/uses-statement/test-uses-leaf-innertype3-base.yang [new file with mode: 0644]
binding2/mdsal-binding2-generator-impl/src/test/resources/uses-statement/test-uses-leaf-innertype3.yang [new file with mode: 0644]