From 48cf302fb9c1ff5a4ed08fb07cc86a41b33bee9d Mon Sep 17 00:00:00 2001 From: Dan Sneddon Date: Thu, 20 Jul 2017 13:19:29 -0700 Subject: 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 --- environments/network-isolation.j2.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'environments') 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 -- cgit 1.2.3-korg