Open abierman opened 8 years ago
The following solution proposal could be done with an extension or real statement
rpc do-something {
input { ... }
output { ... }
error-info {
leaf X { ... }
container Y { ... }
}
}
The error conditions would have to be defined in the description-stmt
Possible machine-readable statement, like if-feature
error-info {
leaf X {
if-error-tag resource-denied;
...
}
container Y {
if-error-tag invalid-value;
...
}
}
I support YANG statements that allow to define error information for rpcs and actions. I consider the lack of it an omission bug.
I also support a way to define possible errors in rpc and action.
Furthermore, I suggest add error-info to must statement, if the must expression is broken, the error-info will be reported. Must xxxxx { error-app-tag xxx; error-message xxxxx; error-info { leaf X { ... } container Y { ... } } }
still strong support but server is not forced to return requested error-info. should not be mandatory like error-tag and error-app-tag
This is different than other modeling tools be cautious going into uncharted territory
Strongly support
Common feature request: improve the ability for error customization and ability to specify error-info, not just error-tag and error-app-tag. Also requests for more places that error statements can be used.
There are several error handling related netconf-next issues 53, 36, 33, 31, 25
The element included in NETCONF and RESTCONF is very useful but there
is no way to specify YANG schema to match expected data-model specific content.
The ietf-restconf module defines the restconf-media-type extension that uses groupings to define this sort of data so they do not appear to be data nodes.
Extensions and groupings cannot be augmented to this approach is limited.
This is related to YANG mount, but this is for defining protocol message content, not datastore content.
The YANG mechanism needs to specify what message and the root node for the schema data.