ConfD User Community

How to annotate YANG model to display leaf-list elements in their own lines?


#1

The original post under Example Set has been moved here as it is a new topic and it belongs to a different category.

As was previously asked by manik:


How to add the support of the get_next_object() callback to the 5-c_stats example?
#2

You can make use of the tailf extension called tailf:cli-suppress-table in order to get ConfD’s auto-rendered cli’s show command to display the output with each leaf-list or leaf element in its own separate line.

An example of how your YANG model will look is as follows:

list port {
  tailf:callpoint feafrontportstats;
  tailf:cli-no-key-completion;
  tailf:cli-suppress-table;
  key "port";
  leaf port
  ....

In order to further tailor the show output format to meet your own requirements, you can make use of tailf:cli-show-template as necessary.