cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1010
Views
0
Helpful
1
Replies

leaf-list still appear in possible completion

ming_mariel
Cisco Employee
Cisco Employee

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. 

1 Reply 1

uavsec001
Level 1
Level 1

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.

Polls
AI-powered tools for network troubleshooting are likely to be part of everyone’s workflow sooner or later. What is the single biggest challenge or concern you see with adopting these tools in your organization?