Sfoglia il codice sorgente

do not fail when network_interfaces is not defined

netifs
parent
commit
0bf4a8c5d1
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      templates/network-interfaces.j2

+ 2
- 0
templates/network-interfaces.j2 Vedi File

@@ -5,6 +5,7 @@
auto lo
iface lo inet loopback

{% if network_interfaces is defined %}
{% for netname,netif in network_interfaces.iteritems() %}
### {{ netname }} ###
auto {{ netif.device }}
@@ -50,6 +51,7 @@ iface {{ netif.device }} inet6 {{ ipv6.method }}
{% endfor %}

{% endfor %}
{% endif %}

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

Loading…
Annulla
Salva