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

networkd: add GatewayOnLink route option

parent 2667907f
Branches
No related tags found
1 merge request!1networkd: add GatewayOnLink route option
Pipeline #2784 passed
...@@ -22,6 +22,13 @@ IPForward=yes ...@@ -22,6 +22,13 @@ IPForward=yes
{% if route.gateway is defined %} {% if route.gateway is defined %}
Gateway={{ route.gateway }} Gateway={{ route.gateway }}
{% endif %} {% endif %}
{% if route.gateway_on_link is defined %}
{% if ansible_distribution_major_version|int <= 10 %}
GatewayOnlink={{ route.gateway_on_link }}
{% else %}
GatewayOnLink={{ route.gateway_on_link }}
{% endif %}
{% 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