Details
-
New Feature
-
Status: Resolved
-
High
-
Resolution: Done
-
None
Description
RFC8040 has defined a new language extension, yang-data, which allows defining free-standing structures in YANG.
Add a mapping of these structures to Java, similar to other YANG constructs. The result should be similar to a top-level container, except it should not use 'ChildOf', but rather be a free-standing.
In terms of namespace collision handling, this construct should be secondary only to schema tree statements, i.e. in case of a conflict with grouping/identity, those should be displaced. A reasonable suffix needs to be assigned as well.
Note that these extensions are superseded with more flexible RFC7891 Yang Structure extensions – and when we implement them, they should map to the same Java construct.
Attachments
Issue Links
- blocks
-
NETCONF-809 Add support for RFC8639 subscribed notifications
-
- Confirmed
-
- is blocked by
-
YANGTOOLS-1297 Add support for infering on YangDataEffectiveStatement
-
- Resolved
-
- relates to
-
MDSAL-814 Build fails on test using identifiers with unicode characters
-
- In Progress
-
-
NETCONF-814 Package RFC8639 ietf-subscribed-notifications module
-
- Resolved
-
-
YANGTOOLS-1477 Define a YangDataName in yang.common
-
- Resolved
-
- split to
-
MDSAL-805 Bridge RFC8040 yang-data to NormalizedYangData
-
- Confirmed
-
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 96863,1 | WIP: Generate yang-data constructs | master | mdsal | Status: ABANDONED | 0 | -1 |
| 97381,32 | RFC8040 'rc:yang-data' support for mdsal binding generator | master | mdsal | Status: MERGED | +2 | +1 |
| 104064,5 | Add YangData base interface | master | mdsal | Status: MERGED | +2 | +1 |
| 104195,1 | Make CamelCaseWithNamespaceNamingStrategy reusable | master | mdsal | Status: MERGED | +2 | +1 |
| 104196,1 | Move ClassNamingStrategy.simpleClassName() | master | mdsal | Status: MERGED | +2 | +1 |
| 104206,1 | Revert "Make CamelCaseWithNamespaceNamingStrategy reusable" | master | mdsal | Status: MERGED | +2 | +1 |
| 104207,3 | Separate out YangIdentifierClassNamingStrategy | master | mdsal | Status: MERGED | +2 | +1 |
| 104211,1 | Add BindingRuntimeTypes.findYangData() | master | mdsal | Status: MERGED | +2 | +1 |
| 104212,1 | Add BindingRuntimeContext.getYangDataClass() | master | mdsal | Status: MERGED | +2 | +1 |
| 104273,3 | WIP Fix build failure on unicode identifiers compile | master | mdsal | Status: ABANDONED | 0 | +1 |