Added network enabled check in multiple nic role rendering file

Without this check, even though network is disabled in
network_data file, network configuration is present in role file.

Change-Id: I03c361f3549f2d0bb9367f7fcd77349b3249fa70
Closes-Bug: 1761484
This commit is contained in:
hanish gogada 2018-04-06 14:58:28 +05:30
parent e57e2e871b
commit 1cc26fba5b
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ resources:
get_param: ControlPlaneDefaultRoute
{%- endif %}
{%- set nics_used = [1] %}
{%- for network in networks if network.name not in role.networks_skip_config|default([]) %}
{%- for network in networks if network.enabled|default(true) and network.name not in role.networks_skip_config|default([]) %}
{%- if network.name not in ["External", "Tenant"] %}
{%- if network.name in role.networks %}
- type: interface