Merge "Do not create NetworkVlanID is the value is not defined"

This commit is contained in:
Zuul 2018-03-28 15:41:47 +00:00 committed by Gerrit Code Review
commit e6750c6a06
2 changed files with 4 additions and 0 deletions

View File

@ -32,7 +32,9 @@ parameter_defaults:
{%- endfor %}
# Customize the VLAN IDs to match the local environment
{%- for network in networks if network.enabled|default(true) %}
{%- if network.vlan is defined %}
{{network.name}}NetworkVlanID: {{network.vlan}}
{%- endif %}
{%- endfor %}
# Customize the IP ranges on each network to use for static IPs and VIPs
{%- for network in networks if network.enabled|default(true) %}

View File

@ -27,7 +27,9 @@ parameter_defaults:
{%- endfor %}
# Customize the VLAN IDs to match the local environment
{%- for network in networks if network.enabled|default(true) %}
{%- if network.vlan is defined %}
{{network.name}}NetworkVlanID: {{network.vlan}}
{%- endif %}
{%- endfor %}
{%- for network in networks if network.enabled|default(true) %}
{%- if network.name == 'External' %}