[YANGTOOLS-669] [Yang 1.1] Support for "require-instance" in leafref Created: 06/Oct/16 Updated: 10/Apr/22 Resolved: 14/Jul/17 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Peter Kajsa | Assignee: | Igor Foltin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||||||||||
| External issue ID: | 6873 | ||||||||||||||||
| Comments |
| Comment by Martin Ciglan [ 19/Oct/16 ] |
|
RFC7950: 9.9.3. The "require-instance" Statement |
| Comment by Igor Foltin [ 06/Nov/16 ] |
|
API change - https://git.opendaylight.org/gerrit/#/c/47983/ |
| Comment by Igor Foltin [ 21/Dec/16 ] |
|
Implementation - https://git.opendaylight.org/gerrit/#/c/49697/ |
| Comment by Giles Heron [ 14/Jul/17 ] |
|
when mounting XR 6.2.1 in Boron the openconfig-bgp model is mounted correctly. when mounting XR 6.2.1 in Carbon this fails. It turns out to be because the model has a leafref with a require-instance under it. This is ambiguous in RFC6020 (YANG 1.0) in that it's not mentioned in the text but is permitted in the ABNF, but is unambiguous in RFC7950 (present in both text and ABNF). The fix was as simple as side-loading a modified model with yang-version set to "1.1". but WHY OH WHY did you change the code in Carbon to explicitly prevent this from working unless yang-version is set to 1.1? It breaks things that previously worked and it goes against Postel's law. |