Skip to content
Snippets Groups Projects
Commit a2a249d4 authored by skorpy's avatar skorpy :construction_worker:
Browse files

Update tun.j2

parent 7f2aa898
No related branches found
No related tags found
No related merge requests found
Pipeline #22912 passed
......@@ -15,7 +15,7 @@ iface {{ name }} inet tunnel
pre-up ip link set mtu {{ interface.mtu }} dev $IFACE
{%- endif %}
{%- for prefix in interface.prefixes %}
{% if salt['network.ip_in_subnet']( (prefix|ipaddr('address')), "169.254.0.0/16" ) %}
{% if salt['network.ip_in_subnet']( {{ prefix|ipaddr('address') }}, "169.254.0.0/16" ) %}
post-up ip address add {{ prefix }} dev $IFACE scope link
{%- else %}
address {{ prefix }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment