aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Sneddon <dsneddon@redhat.com>2017-07-20 13:19:29 -0700
committerDan Sneddon <dsneddon@redhat.com>2017-07-20 13:19:29 -0700
commit48cf302fb9c1ff5a4ed08fb07cc86a41b33bee9d (patch)
treef9de797790f591365d5523ec50e72a8a8576b825
parent782f68c8fd6df1c3ee00fd19d5a8ff9447689d72 (diff)
Fix network-isolation.j2.yaml to ignore VIPs for disabled networks
This change modifies network-isolation.j2.yaml to ignore VIPs for networks that are disabled. This fixes a bug where VIPs would be created in network-isolation.yaml even if a network was disabled. Change-Id: I331b8fec3847bce6ca6c22a9f173055121ef65c9
-rw-r--r--environments/network-isolation.j2.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/environments/network-isolation.j2.yaml b/environments/network-isolation.j2.yaml
index 6a7318fc..1b792afd 100644
--- a/environments/network-isolation.j2.yaml
+++ b/environments/network-isolation.j2.yaml
@@ -17,7 +17,7 @@ resource_registry:
{%- endfor %}
# Port assignments for the VIPs
- {%- for network in networks if network.vip %}
+ {%- for network in networks if network.vip and network.enabled|default(true) %}
OS::TripleO::Network::Ports::{{network.name}}VipPort: ../network/ports/{{network.name_lower|default(network.name.lower())}}.yaml
{%- endfor %}
OS::TripleO::Network::Ports::RedisVipPort: ../network/ports/vip.yaml