address {{ interface.address6 }} {% if 'gateway6' in interface %} gateway {{ interface.gateway6 }} {% endif %} {% for route in interface.static_routes6 | default([]) %} up /bin/ip -6 route add {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %} {% endfor %} {% for route in interface.static_routes6 | default([]) | reverse %} down /bin/ip -6 route del {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %} {% endfor %}