28cdc6e72e
With bionic we need to switch to systemd-networkd rather than the legacy /e/n/i. This makes the mnaio host networkd only, since we will only be supprting xenial and beyond on the host we can do this. The VM's will detect the networking configuration daemon and act appropriately. This also brings up the IPs on the bridges without having any interfaces attached. Change-Id: I72283a2786316181f7ab7d8aad21ad456e9c9503
17 lines
323 B
Django/Jinja
17 lines
323 B
Django/Jinja
[Match]
|
|
Name={{ item.value.iface }}
|
|
|
|
[Network]
|
|
IPForward=yes
|
|
ConfigureWithoutCarrier=true
|
|
{% if item.value.address is defined %}
|
|
Address={{ item.value.address }}
|
|
{% endif %}
|
|
|
|
{% if item.value.address_aliases is defined %}
|
|
[Address]
|
|
{% for addr in item.value.address_aliases %}
|
|
Address={{ addr }}
|
|
{% endfor %}
|
|
{% endif %}
|