diff --git a/tasks/tempest_resources.yml b/tasks/tempest_resources.yml index ed57cd7b..7912b82e 100644 --- a/tasks/tempest_resources.yml +++ b/tasks/tempest_resources.yml @@ -209,7 +209,7 @@ openrc_path: /root/openrc net_name: private provider_network_type: "{{ tempest_private_net_provider_type }}" - provider_segmentation_id: "{{ tempest_private_net_seg_id }}" + provider_segmentation_id: "{{ tempest_private_net_seg_id | default(omit) }}" tenant_id: "{{ keystone_demo_tenant_id }}" insecure: "{{ keystone_service_internaluri_insecure }}" when: tempest_service_available_neutron | bool @@ -225,36 +225,19 @@ - tempest-setup - tempest-config -- name: Ensure public network exists (if flat) +- name: Ensure public network exists neutron: command: create_network openrc_path: /root/openrc net_name: public provider_network_type: "{{ tempest_public_net_provider_type }}" - provider_physical_network: "{{ tempest_public_net_physical_type }}" - router_external: "{{ tempest_public_router_external }}" - insecure: "{{ keystone_service_internaluri_insecure }}" - when: - - tempest_service_available_neutron | bool - - tempest_public_net_provider_type == "flat" - tags: - - tempest-setup - - tempest-config - -- name: Ensure public network exists (if vlan) - neutron: - command: create_network - openrc_path: /root/openrc - net_name: public - provider_network_type: "{{ tempest_public_net_provider_type }}" - provider_physical_network: "{{ tempest_public_physical_net_type }}" - provider_segmentation_id: "{{ tempest_public_net_seg_id }}" + provider_physical_network: "{{ tempest_public_net_physical_type | default(omit) }}" + provider_segmentation_id: "{{ tempest_public_net_seg_id | default(omit) }}" router_external: "{{ tempest_public_router_external }}" tenant_id: "{{ keystone_demo_tenant_id }}" insecure: "{{ keystone_service_internaluri_insecure }}" when: - tempest_service_available_neutron | bool - - tempest_public_net_provider_type == "vlan" tags: - tempest-setup - tempest-config