ifupdown2: add support for stanzas with no gateway
This commit is contained in:
parent
a5a4d28ccc
commit
5ae7126ce2
1 changed files with 2 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue