Allow setting of additional routes

This commit is contained in:
Sebastian Lohff 2019-03-29 00:08:46 +01:00
parent 9c23c39eca
commit 5280d00234
1 changed files with 16 additions and 0 deletions

View File

@ -28,6 +28,14 @@
{% if net.gateway|default %} {% if net.gateway|default %}
':{{ net.gateway }}' ':{{ net.gateway }}'
{% endif %} {% endif %}
{% if net.routes|default %}
{% if not net.gateway|default %}
':'
{% endif %}
{% for route in net.routes %}
':{{ route.route }}-{{ route.gw }}'
{% endfor %}
{% endif %}
{% endif %} {% endif %}
, ,
@ -36,6 +44,14 @@
{% if net.gateway6|default %} {% if net.gateway6|default %}
';{{ net.gateway6 }}' ';{{ net.gateway6 }}'
{% endif %} {% endif %}
{% if net.routes6|default %}
{% if not net.gateway6|default %}
';'
{% endif %}
{% for route in net.routes6 %}
';{{ route.net }}-{{ route.gw }}'
{% endfor %}
{% endif %}
, ,
{% endif %} {% endif %}
{% endfor %} {% endfor %}