add templates to improve decalarativeness

This commit is contained in:
linus 2021-12-03 13:46:28 +01:00
parent 4eab5c852f
commit 8b238e121c
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,3 @@
{% for cidr in cidrs %}
- {"parent": {{ cidr.parent }}, "name": {{ cidr.name }}, "cidr": {{ cidr.cidr }}}
{% endfor %}

View File

@ -0,0 +1,3 @@
{% for peer in peers %}
- {"cidr": {{ peer.cidr }}, "name": {{ peer.name }}, "admin": {{ peer.admin }}}
{% endfor %}