I’ve added a “refine” and “must” when “uses” refers to a group. An example of how it’s being used is as follows :
uses bird-config {
refine feathers-count {
must '(. = 30)' {
error-message "Invalid number of feathers";
}
}
}
Where the grouping “bird-config” is defined as:
grouping bird-config {
description
"Per bird configuration data.";
leaf bird-name {
type species:birds;
description
"[adapted from IETF BIRD model RFC 0000]
The bird name.";
}
leaf feathers-count {
type uint8 {
range "0..30";
}
mandatory true;
description
"[adapted from IETF BIRD model RFC 0000]
The number of feathers.";
}
}
Why is error not being thrown with this simple refine-must statement when I input numbers that aren’t 30 in feathers-count?