ConfD User Community

Leaf-list SNMP response


I have been running a couple of tests with mibs generated through confdc using an yang as an input. In my yang I have a leaf-list of integers (10,11,12,13,14,15,20). While in the cli confd shows this leaf list as ‘10-15,20’ due tailf:cli-range-list-syntax usage, when I perform a snmp get in this leaf list the answer is the string ’ 10 11 12 13 14 15 20’. Is it possible to instruct confd to answer to snmp requests on this leaf-list as ‘10-15,10’, similar to what is done in the cli using range-list-syntax?


The annotation tailf:cli-range-list-syntax is strictly applied to the CLI, not other northbound interfaces, so SNMP will always return ‘10 11 12 13 14 15 20’ as you are seeing.


1 Like