You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
847 B
28 lines
847 B
heat_template_version: queens
|
|
|
|
description: Create networks to split out Overcloud traffic
|
|
|
|
resources:
|
|
{%- for network in networks %}
|
|
{%- set network_name = network.compat_name|default(network.name) %}
|
|
{{network_name}}Network:
|
|
type: OS::TripleO::Network::{{network.name}}
|
|
{%- endfor %}
|
|
|
|
NetworkExtraConfig:
|
|
type: OS::TripleO::Network::ExtraConfig
|
|
|
|
|
|
outputs:
|
|
net_cidr_map:
|
|
value:
|
|
# NOTE(gfidente): we need to replace the null value with a
|
|
# string to work around https://bugs.launchpad.net/heat/+bug/1700025
|
|
{%- for network in networks %}
|
|
{%- set network_name = network.compat_name|default(network.name) %}
|
|
{{network.name_lower}}:
|
|
yaql:
|
|
data: {get_attr: [{{network_name}}Network, subnet_cidr]}
|
|
expression: str($.data).replace('null', 'disabled')
|
|
{%- endfor %}
|