[MDSAL-457] $YangModuleInfoImpl does not flatten submodule includes Created: 21/Jun/19 Updated: 24/Jun/19 Resolved: 24/Jun/19 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding codegen |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.9, 4.0.3 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
In case a modules has multiple submodules, which are including each other, codegen generates multiple instances of YangModuleInfo to hold the same module. This leads to problems when these are put into YangModuleInfoBackedContext, as they compare as different yet represent the same source – leading to YANG parser rejecting them. |
| Comments |
| Comment by Robert Varga [ 21/Jun/19 ] |
|
Submodules should be flattened so that they are only presented as dependencies of the module itself and they should not be emitted within submodules. |