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. dc45036c92

TrivialFix

Change-Id: I16d721539e5956f0d86503dd5b01ea608b129873
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
Maksim Malchuk 2021-10-09 01:39:15 +03:00
parent 580485790a
commit 0751a316f4

View File

@ -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.