summaryrefslogtreecommitdiff
path: root/roles/vm/guest/network/templates/interfaces/simple6.j2
blob: aa10070a6d8223fa160ed603102ab68ca8271ba5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
  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 %}