ed38f3393d
ipaddr filter has been moved from netcommon to utils collection [1]
Based on that we must add that collection to requirements.
[1] db4920ebf6
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/831525
Depends-On: https://review.opendev.org/c/openstack/ansible-role-systemd_networkd/+/831603
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-lxc_container_create/+/833118
Change-Id: I5412e9b4e85373c920b127a96dc9d505ca9fe337
11 lines
263 B
Django/Jinja
11 lines
263 B
Django/Jinja
# {{ ansible_managed }}
|
|
[Match]
|
|
Name={{ lxc_net_bridge }}
|
|
|
|
[Network]
|
|
Address={{ (lxc_net_address ~ '/' ~ lxc_net_netmask) | ansible.utils.ipaddr('cidr') }}
|
|
{% if lxc_net_gateway is not none %}
|
|
Gateway={{ lxc_net_gateway }}
|
|
{% endif %}
|
|
ConfigureWithoutCarrier=yes
|