I'm working with some Jinja2 templates and have a need to use Jinja2's 'ipaddr' filter. Since this isn't well documented from a DNAC perspective, I've been trying to use some of the attributes/schema that are present in the Ansible version of ipaddr. I've got the basics working, but I seem to be getting stuck on the syntax for choosing an index/ipaddress in a network.
What I want to be able to do is address an IP address by it's index. For example, in Ansible I can programmatically choose the gateway to be the first usable ip address in a network by using something like:
In principle, the Cisco DNA jinja editor should allow copy/paste from your Ansible jinja templates. Please submit a Make a Wish via the GUI's help menu to let the development team know of this missing feature.