Find an external network when no one is provided

Esternal network ID is stored in a Heat stack to keep the same network
ID for later test case executions.

Remove logic to found for looking for an external network from
DevStack plugin.

Change-Id: Ic7fe03324f4f328488988435530e127cedfab781
This commit is contained in:
Federico Ressi
2020-02-19 15:58:23 +01:00
parent db68499e39
commit 0df9ce7868
11 changed files with 194 additions and 42 deletions

View File

@@ -0,0 +1,40 @@
heat_template_version: newton
description: |
Creates an network with a subnet and a gateway router to an external network
if given
parameters:
external_id:
description: Default value to be assigned to network ports
type: string
default: '<no-external-id>'
has_external_id:
description: Extra network creation parameters
type: boolean
default: false
conditions:
has_network:
get_param: has_external_id
resources:
network:
type: OS::Neutron::Net
external_id: {get_param: external_id}
condition: has_network
outputs:
network_id:
description: Network ID
value: {get_resource: network}
has_network:
description: Whenever has a floating network
value: {get_param: has_external_id}

View File

@@ -75,9 +75,7 @@ parameters:
gateway_network:
description: Optional gateway network to route packages to
type: string
default:
constraints:
- custom_constraint: neutron.network
default: '<no-gateway-network>'
gateway_value_specs:
description: Extra gateway router creation parameters