openstack-ansible-lxc_hosts/templates/lxc-networkd-bridge.network.j2
Dmitriy Rabotyagov ed38f3393d Change location of ipaddr filter
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
2022-03-14 15:10:30 +00:00

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