[MDSAL-732] Binding generator generates uncompilable code for leafref chain with identityref at the end Created: 11/Mar/22 Updated: 14/Mar/22 Resolved: 12/Mar/22 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding codegen |
| Affects Version/s: | 8.0.0, 8.0.12 |
| Fix Version/s: | 9.0.0, 8.0.13 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Igor Foltin | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 1 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Problem was encountered in openconfig-sonic YANG model using the MDSAL version 8.0.12. |
| Comments |
| Comment by Robert Varga [ 11/Mar/22 ] |
|
Looks like a missing check for wildcard specifier in the corresponding template. The wildcard should just take the upper bound use it for class. Should be trivial to diagnose & fix. |
| Comment by Robert Varga [ 11/Mar/22 ] |
|
A prototype for a fix is attached, needs to be validated with tests. |
| Comment by Robert Varga [ 12/Mar/22 ] |
|
Seems to have been caused by |
| Comment by Igor Foltin [ 14/Mar/22 ] |
|
I've tried the fix and it solved the issue. Thanks. |