Custom Output with Prefix Issue

Hi All,

We have a yang model like

list prefixes {
 tailf:cli-no-key-completion;
 tailf:cli-no-match-completion;
 tailf:cli-full-show-path {
 tailf:cli-max-keys 1;
 
 view:keymap "keymap_show_routes";
 leaf prefix {
  view:pathmap "bgpNlriPrfx";
  type router-comn:ip-type;
 }
}

When cli is used without any key; the display output “show prefix” works fine.
But, if we use prefix as key e.g “show prefix <a.b.c.d>” it fails to show output.

Could anyone explain how this filtering works w.r.t the key?

Is prefix key element? Can you try it without all annotations?

Yes, prefix is the key element. .
Can you try it without all annotations?—> does this mean the following be removed from the yang:
tailf:cli-no-key-completion;
tailf:cli-no-match-completion;
tailf:cli-full-show-path {
tailf:cli-max-keys 1;
}
since I am not sure about without annotation.

Hello,

yes, and also

 view:pathmap "bgpNlriPrfx";

which is not ConfD annotation.