openstack-ansible-ops/multi-node-aio/playbooks/mnaio_host/systemd-networkd-bridges-network.j2
Dave Wilde 28cdc6e72e Update MNAIO to deploy systemd-networkd
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
2018-10-11 16:35:48 -05:00

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 %}