[MDSAL-258] To fix the package name for recursively uses augment. Created: 24/May/17  Updated: 09/Mar/18  Resolved: 19/Sep/17

Status: Resolved
Project: mdsal
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Jie Han Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 8542

 Description   

For recursively uses augment as shown below:
...
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; }

}
}
}

}

}
}
}
...

the package name for 'B1-inner' or 'C1-inner' was set to module's root package name. It is neccessary to eliminate the repeated call of processUsesAugments in augmentationToGenTypes that would generate double classes with ascending indexes for the same augment node, as well as to get package name from parent type builer to generate package name for sub augment nodes.

A patch has been committed:
https://git.opendaylight.org/gerrit/#/c/57746/


Generated at Wed Feb 07 20:09:15 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.