Changing the default port-binding configuration
[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     {%- if network.name != 'InternalApi' %}
9   {{network.name}}Network:
10     {%- else  %}
11   InternalNetwork:
12     {%- endif %}
13     type: OS::TripleO::Network::{{network.name}}
14   {%- endfor %}
15
16   NetworkExtraConfig:
17     type: OS::TripleO::Network::ExtraConfig
18
19
20 outputs:
21   net_cidr_map:
22     value:
23       # NOTE(gfidente): we need to replace the null value with a
24       # string to work around https://bugs.launchpad.net/heat/+bug/1700025
25       {%- for network in networks %}
26         {%- if network.name != 'InternalApi' %}
27       {{network.name_lower}}:
28         yaql:
29           data: {get_attr: [{{network.name}}Network, subnet_cidr]}
30           expression: str($.data).replace('null', 'disabled')
31         {%- else  %}
32       {{network.name_lower}}:
33         yaql:
34           data: {get_attr: [InternalNetwork, subnet_cidr]}
35           expression: str($.data).replace('null', 'disabled')
36         {%- endif %}
37       {%- endfor %}