Hi,
we have requirement for showing one of the leaf values using leafref. (clear bgp neighbor routing-instance routing-instance-name) . Here when user types, routing-instance, wanted to display all the instances configured till now. Can we use leafref in this scenario or is there any other alternative.
Yes, if routing-instance is defined as a leafref, then all leafs pointed to by routing-instance will be shown as possible values for the action point when you press tab after routing-instance.