Skip to content
Snippets Groups Projects
Commit 756bf837 authored by Lars Beckers's avatar Lars Beckers
Browse files

networkd: allow routes w/o gateway setting

parent 10d42a6c
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,9 @@ IPForward=yes ...@@ -19,7 +19,9 @@ IPForward=yes
{% for route in network.routes|default([{'gateway': network.gateway}]) %} {% for route in network.routes|default([{'gateway': network.gateway}]) %}
[Route] [Route]
{% if route.gateway is defined %}
Gateway={{ route.gateway }} Gateway={{ route.gateway }}
{% endif %}
{% if route.destination is defined %} {% if route.destination is defined %}
Destination={{ route.destination }} Destination={{ route.destination }}
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment