Fix conditional for ovs

when deploying ovs on compute the mapping might be equals to : "network_mappings": "".
this prevent the tasks to fail.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/778008/
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/778015/

Change-Id: I8f1407f895ffef7573e8b3b9c72514e2009da594
This commit is contained in:
Marc Gariepy 2021-03-01 16:14:47 -05:00
parent f441b212f5
commit 55d6b6d74c

View File

@ -24,7 +24,7 @@
when: when:
- neutron_services['neutron-openvswitch-agent']['group'] in group_names - neutron_services['neutron-openvswitch-agent']['group'] in group_names
- neutron_plugin_type in ['ml2.ovs', 'ml2.ovs.dvr'] - neutron_plugin_type in ['ml2.ovs', 'ml2.ovs.dvr']
- neutron_provider_networks.network_mappings is defined - neutron_provider_networks.network_mappings is defined and (neutron_provider_networks.network_mappings|length > 0)
- not ovs_dpdk_support - not ovs_dpdk_support
- name: Add ports to Network Provider Bridges - name: Add ports to Network Provider Bridges