[YANGTOOLS-630] Parser: Refine without sub-statements should not be invalid Created: 08/Jul/16 Updated: 10/Apr/22 Resolved: 15/Jul/16 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Vratko Polak | Assignee: | Vratko Polak |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 6173 |
| Description |
|
Looking at specification of Yang 1.0 [0] or Yang 1.1 [1], it is NOT written that the refine statement has to perform at least one refinement. But the current parser deliberately throws an exception when an empty refine statement is encountered. It should be possible to allow such empty refine statements without any obvious downside. Example model to follow shortly. [0] https://tools.ietf.org/html/rfc6020#section-7.12.2 |
| Comments |
| Comment by Vratko Polak [ 08/Jul/16 ] |
|
Example module: https://git.opendaylight.org/gerrit/41551 |
| Comment by Vratko Polak [ 08/Jul/16 ] |
|
Attempted fix: https://git.opendaylight.org/gerrit/41552 |
| Comment by Vratko Polak [ 15/Jul/16 ] |
|
Do we want the fix to get into Beryllium? Before SR3? |
| Comment by Peter Kajsa [ 15/Jul/16 ] |