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
This commit is contained in:
Dan Sneddon 2017-07-20 13:19:29 -07:00
parent 782f68c8fd
commit 48cf302fb9

View File

@ -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