You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello team,
Does clixon have an option to customize "error-message" that is used within "must" statement directly in yang model?
If there are a lot of entities within a list it becomes difficult to catch one which causes the problem.
Let's say we have a simple list model, e.g.:
{
container c1 {
list L1 {
key name;
leaf name {
type string;
}
leaf l2 {
must "Some expression" {
error-message "Some message";
}
type string;
}
}
}
}
So the idea is somehow to customize error-message and enrich it with exact entity name where error occures, like in 'printf' style: error-message ("%s Some message", ../name)
The text was updated successfully, but these errors were encountered:
Hello team,
Does clixon have an option to customize "error-message" that is used within "must" statement directly in yang model?
If there are a lot of entities within a list it becomes difficult to catch one which causes the problem.
Let's say we have a simple list model, e.g.:
So the idea is somehow to customize error-message and enrich it with exact entity name where error occures, like in 'printf' style:
error-message ("%s Some message", ../name)
The text was updated successfully, but these errors were encountered: