aboutsummaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-08-11 11:26:41 +0000
committerGerrit Code Review <review@openstack.org>2017-08-11 11:26:41 +0000
commitef6b8d44c26c5bb172e5f9c90e170eba43084066 (patch)
tree83fda7e56ec3aceaac7c4a41738008e8dea58fcb /network
parentf3c58d50d327e4bbd1bc9cdd70710ba9778336a3 (diff)
parenta8a1d5b30c12a3cf8f0268216e97b9d2f7568086 (diff)
Merge "Keep dynamic network creation backward compatible."
Diffstat (limited to 'network')
-rw-r--r--network/networks.j2.yaml7
1 files changed, 4 insertions, 3 deletions
diff --git a/network/networks.j2.yaml b/network/networks.j2.yaml
index c790d37..48c509d 100644
--- a/network/networks.j2.yaml
+++ b/network/networks.j2.yaml
@@ -3,9 +3,9 @@ heat_template_version: pike
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 %}
@@ -19,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 %}