Key values in possible completion

Hello Team,

I have a list under a container with config false, used to display some information. The list has a key and can have at max 1024 records.

container trace {
  config false;
  tailf:cdb-oper;
  list statistics {
    key "id";
    tailf:callpoint stats;
    leaf id {
      type uint16 {
        range "1..1023";
      }
    }
    leaf A { }
    leaf B { }
  }
}

When I give a ‘?’ for possible completions, it displays 1024 lines as possible ‘id’ completion.
Is it possible to replace these 1024 lines with something like this: “<1…1023> id” ?
Please suggest.

I think you are looking for the annotation tailf:cli-no-key-completion - add it under the list statistics.

1 Like