templates: suse-interface: Never ask for DHCP configuration
There is no DHCP server running for that interface so we get errors when no static IP is defined since wicked fails to obtain a lease for this interface. We should either define a static IP if available or leave it unconfigured. This is also in line with the ifcfg(5) manpage suggestion to use BOOTPROTO=static without any IP configuration if we just want to bring an interface up but without any further configuration. Change-Id: I4c1189def8fe21386d02e9ba9ddebbd8c44b55c7
This commit is contained in:
parent
aed4464d0e
commit
98b2ed0cb6
|
@ -2,12 +2,10 @@
|
|||
|
||||
### start generated network for [ {{ item.value.interface }} ] ###
|
||||
STARTMODE=auto
|
||||
{% if item.value.address is defined %}
|
||||
BOOTPROTO=static
|
||||
{% if item.value.address is defined %}
|
||||
IPADDR={{ item.value.address }}
|
||||
NETMASK={{ item.value.netmask }}
|
||||
{% else %}
|
||||
BOOTPROTO=dhcp
|
||||
{% endif %}
|
||||
MTU={{ item.value.mtu|default(lxc_container_default_mtu) }}
|
||||
### end generated network for [ {{ item.value.interface }} ] ###
|
||||
|
|
Loading…
Reference in New Issue