08-12-2019 11:43 AM
there's an action in yang, and inside it, I have a leaf-list, for example:
container testLeaflistAction {
tailf:action testAction {
tailf:actionpoint test-action;
input {
leaf-list elements {
tailf:info "elements";
type string;
}
the leaf-list should have multiple elements, my question is when user type "request action testAction elements [ ..... ] ", and then they press tab, still have leaf-list elements in the possible completion list in terminal. Is there any example to fix that, means after first time user tab elements leaf-list, then tab again, then there's no leaf-list in possible completion any more. Thank you.
PS: I try min-elements and max-elements set both to 1, then worked, but actually the number of elements needs to be more than 1.
08-13-2019 02:57 AM
Hm I was looking at the possible tailf options and maybe this one matches what you want: tailf:cli-suppress-show-match
Works only for the CLI though.
If that is not good enough, maybe you could create a nacm rule-list with access-operation denying read for a specific user group? Might not be the perfect solution but better than nothing I guess.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide