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 %}
address {{ address | ipaddr }}
{% endfor %}
{% for gateway in iface.gateways %}
{% for gateway in iface.gateways | default([]) %}
gateway {{ gateway | ipaddr }}
{% endfor %}
{% endfor %}