cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
836
Views
0
Helpful
3
Replies

leaf-list in an action input will repeat itself. How to make it not to repeat. provided we do not give max or min elements.

spudukko
Cisco Employee
Cisco Employee

Suppose if we have yang with action input param as leaf-list, the input param will repeat itself for possible completions multiple times . How to restrict it  How should one model to avoid leaf-list repeating ?

 

 

3 Replies 3

lmanor
Cisco Employee
Cisco Employee
What do you mean by ‘repeating’?
Please provide some more info on what your problem is… perhaps an example would help…
Is this in CLI, action python/java code?

CLI version will keep repeating the leaf-list element. I wanted it not to repeat at the same time i cannot max or min elements

Michael Maddern
Cisco Employee
Cisco Employee

If the input should only allow one item, then use a leaf instead of a leaf-list.