[YANGTOOLS-643] augmenting unknown statement results in error Created: 02/Aug/16 Updated: 10/Apr/22 Resolved: 23/Oct/16 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Martin Bobak | Assignee: | Peter Kajsa |
| 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: | 6329 |
| Description |
|
augmenting : augment "disconnect/input" { } defined as : grouping disconnect-grouping { } results into error : Error 1: Augment target 'Relative {path=[(http://some/ns?revision=2016-01-01)disconnect, (http://some/ns?revision=2016-01-01)input]}' not found [at null:1245:6] |
| Comments |
| Comment by Peter Kajsa [ 26/Sep/16 ] |
|
Please, try to test with using this patch |
| Comment by Robert Varga [ 27/Sep/16 ] |
|
I think the model is buggy, as the original definition does not include 'input'. If the modeling intent is to allow augmentation, the disconnect action should include an empty input statement. |
| Comment by Peter Kajsa [ 28/Sep/16 ] |
|
Yes, the example from Martin is buggy, because there are omitted some relevant nodes and parts from original yang model. Correct example of this issue should be: grouping my-grouping { } container my-container { } This issue is well known, so proposed fix solves of course this correct example. |
| Comment by Robert Varga [ 23/Oct/16 ] |