Skip to content

Check before validate in case of "when" statement #94

@jashmikant

Description

@jashmikant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions