Binding generator v2 - Augmentation - Fix package name for recursively uses augment 46/57746/24
authorJie Han <han.jie@zte.com.cn>
Wed, 24 May 2017 08:15:08 +0000 (16:15 +0800)
committerJie Han <han.jie@zte.com.cn>
Fri, 16 Jun 2017 01:06:56 +0000 (09:06 +0800)
commit0f8b8f57e35969bf0e37f918b8b18409963f55dc
treee6f37214b5d58a04f3db0b030134ba994f58df63
parentca0c56863fb5e605abcdc78fb48c77e615222845
Binding generator v2 - Augmentation - Fix package name for recursively uses augment

- Fix package name for recursively uses augmentation, the yang file like:
         ...
         grouping D{
                uses "grp:A" {
                    augment "A1/A1-inner" {
                        leaf D-aug-A1 {
                            type string;
                        }
                        uses B {
                            augment "B1/B1-inner" {
                                 leaf D-aug-B1-inner {
                                      type string;
                                 }
                                 uses C {
                                         augment  "C1/C1-inner" {
                                              leaf D-aug-C1-inner {
                                                   type string;
                                              }
                                         }
                                     }
                            }

                        }

                    }
                }
            }
       ...
- add UT and yang file

Change-Id: If0b1131f15ab42be5c64a0fd087bd2a14a6597ce
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/AugmentToGenType.java
binding2/mdsal-binding2-generator-impl/src/test/java/org/opendaylight/mdsal/binding/javav2/generator/impl/Bug8542Test.java [new file with mode: 0644]
binding2/mdsal-binding2-generator-impl/src/test/resources/bug-8542/recursive-uses-augment.yang [new file with mode: 0644]
binding2/mdsal-binding2-generator-util/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/util/BindingGeneratorUtil.java