From 0751a316f4ef093221ae3bab2d6514689cd980de Mon Sep 17 00:00:00 2001 From: Maksim Malchuk Date: Sat, 9 Oct 2021 01:39:15 +0300 Subject: [PATCH] Use net_mask filter instead of ansible's ipaddr For a long time [1] we have net_mask filter, so no need to use ugly combination of the net_cidr filter together with ansible's ipaddr filter. 1. https://opendev.org/openstack/kayobe/commit/dc45036c92cb28fd4e9f2d9c84a03438bf7ad26f TrivialFix Change-Id: I16d721539e5956f0d86503dd5b01ea608b129873 Signed-off-by: Maksim Malchuk --- ansible/kolla-bifrost-hostvars.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/kolla-bifrost-hostvars.yml b/ansible/kolla-bifrost-hostvars.yml index 0de2d8010..3926f8f93 100644 --- a/ansible/kolla-bifrost-hostvars.yml +++ b/ansible/kolla-bifrost-hostvars.yml @@ -17,7 +17,7 @@ deploy_image_filename: "{{ kolla_bifrost_deploy_image_filename }}" ipv4_interface_mac: "{% raw %}{{ extra.pxe_interface_mac | default }}{% endraw %}" ipv4_address: "{{ admin_oc_net_name | net_ip }}" - ipv4_subnet_mask: "{{ admin_oc_net_name | net_cidr | ipaddr('netmask') }}" + ipv4_subnet_mask: "{{ admin_oc_net_name | net_mask }}" # If the admin network does not have a gateway defined, use the # seed as a gateway to allow external access until other networks have # been configured.