Tailf annotate based on condition it show say incomplete path

Hey i’m new to YANG and Conf,

I need to restrict the xpath as incomplete, for that i have tried it below cases it did’t get it.

Try : 1,
tailf:annotate “/per:equipment/per:port” {
must " current()/portId != ‘TPP’ "{
tailf:cli-incomplete-show-path;
}
}

Error: unknow keyword “tailf:cli-incomplete-show-path;”;

Try : 2,

tailf:annotate “/per:equipment/per:port” {
when " current()/portId = ‘TPP’ "{
tailf:cli-incomplete-show-path;
}
}

Error: unknow keyword “tailf:cli-incomplete-show-path;”;

Try : 3,

tailf:annotate “/per:equipment/per:port” {
when " current()/portId = ‘TPP’ ";
tailf:cli-incomplete-show-path;
}

Error: It was restrict it for all port

Try : 4,
tailf:annotate “/per:equipment/per:port” {
when " current()/portId = ‘TPP’ ";
tailf:cli-incomplete-show-path;
}

Error: Port is not displaying

can any one help.

“tailf:cli-incomplete-show-path” can not be conditional.

If you want to achieve something like what you described, I suggest separating the TPP from the rest of the ports, i.e. in its own container.

But in general it’s better to keep consistency unless you have a very strong reason.

Thanks for your reply @nabil

Since port is already using in exist product.
I want to write it in generic case. So that i could not able to separate the TPP.

My Work is very simple,
show equipment port C1 pm-port => it should allow,

show equipment port TPP pm-port => it should restrict.

Restriction may be in any ways, I was try to restrict in tailf:cli-incomplete-show-path;

if you have any other way, please let me know. i can try it.