{% for iface in radvd_interfaces %} interface {{ iface.interface }} { AdvSendAdvert on; {% if iface.other_config|d(False) %} AdvOtherConfigFlag on; {% endif %} prefix {{ iface.prefix }} { AdvOnLink {% if iface.on_link|d(True) %}on{% else %}off{% endif %}; AdvAutonomous {% if iface.autonomous|d(True) %}on{% else %}off{% endif %}; }; {% if iface.rdnss is defined %} {% for address in iface.rdnss %} RDNSS {{ address }} { }; {% endfor %} {% endif %} {% if iface.dnssl is defined %} {% for domain in iface.dnssl %} DNSSL {{ domain }} { }; {% endfor %} {% endif %} }; {% endfor %}