In the following schema how can i supress the table for list one and enforce the table for list two.
list one {
tailf: cli-suppress-table;
tailf: cli-show-template "Pfx: ($two)";
leaf two {
type string;
}
list three {
/*
* enforce table here.
*/
leaf four {
type string;
}
leaf five {
type string;
}
}
}
Did you try to add to list two statement tailf:cli-enforce-table ?
Forces the generation of a table for a list element node regardless of whether the table will be too wide or not. This applies to the tables generated by the auto-rendred show commands for non-config data.
Ok, you can emulate nested list table form with show template. E.g.:
container data {
tailf:cdb-oper;
config false;
list one {
config false;
key two;
tailf:cli-suppress-mode;
tailf:cli-suppress-table;
tailf:cli-show-template "Pfx: $(two)\n$(three|show)\n";
leaf two {
type string;
}
list three {
config false;
tailf:cli-suppress-mode;
tailf:cli-suppress-table;
tailf:cli-show-template-legend "FOUR FIVE\n------------\n";
tailf:cli-show-template "$(four) $(five)\n";
key four;
leaf four {
type string;
}
leaf five {
type string;
}
}
}
}
The output looks like:
# show data
Pfx: 1_two
FOUR FIVE
------------
10_four 10_five
1_four 1_five
Pfx: 2_two
FOUR FIVE
------------
20_four 20_five
2_four 2_five
...
You can improve formatting, indent an justification using show template macros (see examples.confd/cli/climods/jdemo.yang).