Make router creation independent from tempest_public_net_create

Currently when ``tempest_router_create`` is enabled, playbook requires
``tempest_public_net_create`` to be set.

It's an incorrect behavior. Router creation should only require public
network to exist. It does not matter if that public network was created
by tempest or operator.

Change-Id: Icaa223ed03837a68e9e84a89560cc2df10e3ed3e
This commit is contained in:
Damian Dabrowski 2022-07-11 17:12:49 +02:00
parent 56c07080a7
commit 4878640e18
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@
- name: Ensure that all required variables are set when tempest_router_create is enabled
assert:
that:
- tempest_public_net_create
- (tempest_public_net_create or tempest_neutron_public_network_id is defined)
- tempest_private_net_create
when:
- tempest_router_create
@ -264,7 +264,7 @@
interface: "{{ tempest_interface_name }}"
validate_certs: "{{ tempest_keystone_interface_insecure | ternary(false, true) }}"
name: router
network: "{{ tempest_public_net_name }}"
network: "{{ tempest_neutron_public_network_id }}"
interfaces:
- "{{ tempest_private_subnet_name }}"
project: "{{ keystone_demo_tenant_id }}"