list da {
config false;
tailf:callpoint "da";
tailf:cli-suppress-table;
tailf:cli-show-template-enter "";
tailf:cli-show-template "Top:$(level1), $(level2)\n";
list level1 {
tailf:callpoint "da-l1";
key id;
leaf id {type int32;}
leaf v{type string;}
}
list level2 {
tailf:callpoint "da-l2";
key id;
leaf id {type int32;}
leaf x{type string;}
}
}
Before add tailf:cli-show-template “Top:\n” to the top list da, we just show the root list da, it will show all it’s sub list
localhost# show da
ID V
-----------------------
-1 level:1 in da[-1]
0 level:1 in da[-1]
1 level:1 in da[-1]
2 level:1 in da[-1]
ID X
-----------------------
-1 level:2 in da[-1]
0 level:2 in da[-1]
1 level:2 in da[-1]
2 level:2 in da[-1]
ID V
----------------------
-1 level:1 in da[0]
0 level:1 in da[0]
1 level:1 in da[0]
2 level:1 in da[0]
After add custom show-template, it only the da list itself without showoing it’s sub list.
localhost# show da
Top:
Top:
How can I let it show all it’s sub list?