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
Change-Id: I609a6a0da073ea39235ef862e580b00f9e7f91c7
This commit is contained in:
Dmitriy Rabotyagov 2022-03-10 17:09:23 +01:00 committed by Marc Gariépy
parent 105d467a3b
commit 2765025768
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ Name={{ item.value.interface }}
{% if item.value.address is defined %}
[Address]
{% set addr_cidr = (item.value.address | string + '/' + item.value.netmask | string) | ipaddr('prefix') %}
{% set addr_cidr = (item.value.address | string + '/' + item.value.netmask | string) | ansible.utils.ipaddr('prefix') %}
Address={{ item.value.address }}/{{ addr_cidr }}
{% else %}
[DHCP]
@ -31,7 +31,7 @@ Metric={{ 20 + loop.index }}
[Network]
{% if item.value.address is defined %}
{% set addr_cidr = (item.value.address | string + '/' + item.value.netmask | string) | ipaddr('prefix') %}
{% set addr_cidr = (item.value.address | string + '/' + item.value.netmask | string) | ansible.utils.ipaddr('prefix') %}
Address={{ item.value.address }}/{{ addr_cidr }}
{% else %}
DHCP=yes