Tailf:validate : Conditional valpoint

Hi,

Is there any way in yang or other means by which we can register a conditional valpoint.

Eg:
leaf a {
type int32;
tailf:validate vp
}

In the example above, requirement is to trigger the validation callback for valpoint “vp” only if the value of a is 100;

Thanks in advance.

It is generally not a good idea to skip validation as the configuration in the datastore should always be valid.

That said, optional validation points are not supported. You have to check in your validation callback and bail out early (returning OK) if the value of a is below 100. Of course, this is the same as declaring that all values below 100 are valid.