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 %}
|
{% 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 %}
|
||||||
|
|
Loading…
Reference in a new issue