Binding generator v2 - uses statement - uses inner type 82/60582/14
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>
Thu, 10 Aug 2017 08:46:07 +0000 (08:46 +0000)
commitb9086681167b83e5aa6887dabbb749807f4c6206
tree4da91f6382da010b891995edc4eed88e4a7836f2
parent715b8f2b0ed4842a002d57c4e778e6c2624584c1
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>
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]