Hi,
This is yang model for show CLI. Here list is used with key which is a string.
container statistics-interface {
description "Statistics interface configuration.";
tailf:cli-add-mode;
tailf:cli-delayed-auto-commit;
tailf:cli-incomplete-show-path;
//Some config nodes
//show CLI
container state {
description "State of statistics-interface";
config false;
tailf:callpoint show-state;
list bbb-state {
tailf:alt-name "bbb";
description "BBB information";
key "bbb-name";
leaf bbb-name {
description "BBB name";
type string;
}
leaf bbb-id {
description "BBB id";
type int32;
}
leaf source {
description "BBB source";
type string;
}
leaf state {
description "BBB state";
type string;
}
}
}
}
This is tabular output of show CLI for all keys
host# show statistics-interface state bbb
BBB
BBB NAME ID SOURCE STATE
------------------------------------------------
xxxx 2 configured UP
10.10.10.100:9092/0 0 configured UP
10.10.10.100:9093/1 1 learned UP
Now, we want to get output of show CLI for a single key.
Case 1: CLI works with key which contains normal text.
host# show statistics-interface state bbb xxxx
BBB
BBB NAME ID SOURCE STATE
------------------------------------------------
xxxx 2 configured UP
Case 2: CLI does not work with key containing special character/s (":")
host# show statistics-interface state bbb 10.10.10.100:9092/0
------------------------------------------^
syntax error: unknown argument
Case 3: CLI works with same key from Case 2 with “*” at end
host# show statistics-interface state bbb 10.10.10.100:9092/0*
BBB
BBB NAME ID SOURCE STATE
------------------------------------------------
10.10.10.100:9092/0 0 configured UP
Case 1 is fine.
Why Case 3 works with key ended with “*”. Is it considered as a wildcard character?
Main concern:
We want to make show CLI work in Case 2 (without “*”). Can we achieve that?
Confd version - 6.4.3