aboutsummaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-10-14 01:09:45 +0000
committerGerrit Code Review <review@openstack.org>2017-10-14 01:09:45 +0000
commit46a0d9e8de59538bdc6ac49132abb6efecbf1ccf (patch)
tree396f477e75ed9c89ec645aff7314887dbd6cb2bb /network
parent94e8238d6b61811d705b653ffb36d1aea624d015 (diff)
parenta8e7a2087532658af9703dc69481958657b3868f (diff)
Merge "Revert "Fixes heat resource name for Internal API Network"" into stable/pike
Diffstat (limited to 'network')
-rw-r--r--network/networks.j2.yaml6
1 files changed, 4 insertions, 2 deletions
diff --git a/network/networks.j2.yaml b/network/networks.j2.yaml
index 1a170045..48c509df 100644
--- a/network/networks.j2.yaml
+++ b/network/networks.j2.yaml
@@ -4,7 +4,8 @@ description: Create networks to split out Overcloud traffic
resources:
{%- for network in networks %}
- {{network.name}}Network:
+ {%- set network_name = network.compat_name|default(network.name) %}
+ {{network_name}}Network:
type: OS::TripleO::Network::{{network.name}}
{%- endfor %}
@@ -18,8 +19,9 @@ outputs:
# 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]}
+ data: {get_attr: [{{network_name}}Network, subnet_cidr]}
expression: str($.data).replace('null', 'disabled')
{%- endfor %}