f35479563a
This combines several changes that added tags to port resources into one commit. Set up tag hints on all OS::Neutron::Port resources. The network-data-v2 work uses tags on neutron resources to find existing resources so that we update instead of create. Also for generating environment files info in the neutron tag field is utilized. Conflicts: network/ports/deployed_port.j2 Related: blueprint network-data-v2-ports (cherry picked from commit28f2a70912
) (cherry picked from commit6d39c90a22
) (cherry picked from commitcea78ad4fd
) (cherry picked from commit73684d0a89
) (cherry picked from commitd3b8515c4f
) (cherry picked from commitb4b2bc5d70
) (cherry picked from commit659cc55277
) Change-Id: I178ac067e4fd77ddfa0eed963c79603576994433
48 lines
1012 B
YAML
48 lines
1012 B
YAML
heat_template_version: rocky
|
|
|
|
parameters:
|
|
RootStackName:
|
|
description: The name of the stack/plan.
|
|
type: string
|
|
network:
|
|
type: string
|
|
default: ctlplane
|
|
fixed_ips:
|
|
default: []
|
|
type: json
|
|
name:
|
|
type: string
|
|
dns_name:
|
|
default: ''
|
|
type: string
|
|
replacement_policy:
|
|
type: string
|
|
default: AUTO
|
|
ControlPlaneSubnet:
|
|
default: ctlplane-subnet
|
|
description: The name of the undercloud Neutron control plane subnet
|
|
type: string
|
|
|
|
resources:
|
|
|
|
ControlPlanePort:
|
|
type: OS::Neutron::Port
|
|
properties:
|
|
network: ctlplane
|
|
fixed_ips: [{subnet: {get_param: ControlPlaneSubnet}}]
|
|
name:
|
|
list_join:
|
|
- '-'
|
|
- - {get_param: name}
|
|
- port
|
|
replacement_policy: AUTO
|
|
tags:
|
|
- str_replace:
|
|
template: tripleo_stack_name=$STACK_NAME
|
|
params:
|
|
$STACK_NAME: {get_param: RootStackName}
|
|
|
|
outputs:
|
|
fixed_ips:
|
|
value: {get_attr: [ControlPlanePort, fixed_ips]}
|