Merge "Add Telemetry services to scenario002"
[apex-tripleo-heat-templates.git] / network / networks.j2.yaml
1 heat_template_version: pike
2
3 description: Create networks to split out Overcloud traffic
4
5 resources:
6
7   {%- for network in networks %}
8   {{network.name}}Network:
9     type: OS::TripleO::Network::{{network.name}}
10   {%- endfor %}
11
12   NetworkExtraConfig:
13     type: OS::TripleO::Network::ExtraConfig
14
15
16 outputs:
17   net_cidr_map:
18     value:
19       # NOTE(gfidente): we need to replace the null value with a
20       # string to work around https://bugs.launchpad.net/heat/+bug/1700025
21       {%- for network in networks %}
22       {{network.name_lower}}:
23         yaql:
24           data: {get_attr: [{{network.name}}Network, subnet_cidr]}
25           expression: str($.data).replace('null', 'disabled')
26       {%- endfor %}