Difference between leaf-list and list { leaf{} }


what is difference between leaf-list and list{leaf}}? Not very clear from user guide. besides I am experiencing leaf-list can not send down complete list of information for mixed type of ip addresses(ipv4/ipv6). But list{leaf{}} not have any issues.


You can use for example the ipv4/v6 “ip-address” type from ietf-inet-types.yang in either a leaf-list or a list with a single leaf.
The ConfD UG doesn’t have to describe YANG leaf-lists or lists in detail as RFC7950 section 7.7 and 7.8 does a good job of that.