Browse Source

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
changes/01/559301/1
hanish gogada 4 years ago
parent
commit
1cc26fba5b
  1. 2
      network/config/multiple-nics/role.role.j2.yaml

2
network/config/multiple-nics/role.role.j2.yaml

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

Loading…
Cancel
Save