[YANGTOOLS-1360] Define a yang.common version of NetconfError Created: 29/Oct/21 Updated: 18/Jan/24 |
|
| Status: | Confirmed |
| Project: | yangtools |
| Component/s: | data-api |
| Affects Version/s: | None |
| Fix Version/s: | 14.0.0, 13.0.2 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
We currently define YangNetconfError in yang-data-api, but we do not have a yang.common version of this contract. Define a baseline NetconfError interface, which provides the required concept, such that it can be specialized by yang-data-api and possibly by mdsal-binding-api. The baseline needs to be flexible enough to accommodate both the NETCONF (RFC6241) and RESTCONF (RFC8040) definition of this construct. The most critical part is error-info, which should map to an AnyDataNode in yang-data-api, with appropriate immutable implementations provided by yang-data-impl. |