Commit 756bf837 authored by Lars Beckers's avatar Lars Beckers
Browse files

networkd: allow routes w/o gateway setting

parent 10d42a6c
......@@ -19,7 +19,9 @@ IPForward=yes
{% for route in network.routes|default([{'gateway': network.gateway}]) %}
[Route]
{% if route.gateway is defined %}
Gateway={{ route.gateway }}
{% endif %}
{% if route.destination is defined %}
Destination={{ route.destination }}
{% endif %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment