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)
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)