ipaddr was moved to ansible.utils

This commit is contained in:
Miha Frangež 2026-01-09 11:32:58 +01:00
parent 8276c6e8b4
commit 32ddf5e58e
9 changed files with 16 additions and 16 deletions

View file

@ -3,7 +3,7 @@
| selectattr('enabled') %}
{% for address in iface.ip_addresses | selectattr("family.value", "==", 6) %}
{# get the gateway for this subnet #}
{% set subnet = address.address | ipaddr('subnet') %}
{% set subnet = address.address | ansible.utils.ipaddr('subnet') %}
{% set prefix = prefixes | selectattr('prefix', '==', subnet) | first %}
{% set gateway = prefix.custom_fields.gateway.address %}
{# if we are gateway, send RAs on this interface #}