Name = {{ tinc.name }} {% if tinc.listen_on is defined %} AddressFamily = {{ tinc.listen_on }} {% else %} AddressFamily = ipv6 {% endif %} Interface = tn_int Mode = switch {% for conn in tinc.connections %} ConnectTo = {{ conn }} {% endfor %}