ifupdown2: add support for stanzas with no gateway

This commit is contained in:
jeltz 2022-08-27 04:10:11 +02:00
parent a5a4d28ccc
commit 5ae7126ce2
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -6,7 +6,8 @@ iface {{ name }}
{% for address in iface.addresses %} {% for address in iface.addresses %}
address {{ address | ipaddr }} address {{ address | ipaddr }}
{% endfor %} {% endfor %}
{% for gateway in iface.gateways %} {% for gateway in iface.gateways | default([]) %}
gateway {{ gateway | ipaddr }} gateway {{ gateway | ipaddr }}
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}