container c{
leaf name {
type string;
}
leaf description {
when '../name="lag-1"';
type int32;
}
}
Here I want description option to only show if name is "lag-1" .
Currently this is only checked at validation in CLI.
But for above use case, it's better to check before validation.