fix(metal): fix deprecated ipaddr and ipsubnet

This commit is contained in:
Khue Doan 2022-12-24 14:21:07 +07:00
parent ce5595bd5d
commit 2aa84b7b56

View File

@ -4,6 +4,6 @@ metallb_subnet_index: -1 # last subnet
metallb_addresses: | # Use the last subnet with the specified size from the network
{{
(ansible_default_ipv4.network + '/' + ansible_default_ipv4.netmask)
| ansible.netcommon.ipaddr('net')
| ansible.netcommon.ipsubnet(metallb_subnet_cidr_prefix, metallb_subnet_index)
| ansible.utils.ipaddr('net')
| ansible.utils.ipsubnet(metallb_subnet_cidr_prefix, metallb_subnet_index)
}}