summaryrefslogtreecommitdiff
path: root/roles/vm/guest/network/templates/interfaces/simple6.j2
blob: 37fda07a36d8c14becaf384de5a9ff3c5fb89120 (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 %}