Hi,
grouping testusers{
leaf max-user {
type uint8 {range "1..100";}
default 100;
}
}
container Test {
leaf dummy {
type enumeration {
enum xyz;
enum abc;
}
}
uses testusers{
refine max-user{
default 10;
}
when "../dummy = 'xyz' ";
}
}
The use of when as above will make the max-user leaf conditional however that’s not the requirement.
The requirement is that leaf max-user should always be present but its default value to have different values based on the value of the dummy leaf.
Thank you in advance.