From 1cc26fba5b9a86bf5d4e9718e773558e76607843 Mon Sep 17 00:00:00 2001 From: hanish gogada Date: Fri, 6 Apr 2018 14:58:28 +0530 Subject: [PATCH] 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 --- network/config/multiple-nics/role.role.j2.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/config/multiple-nics/role.role.j2.yaml b/network/config/multiple-nics/role.role.j2.yaml index 8805bb3825..3ca88da8f4 100644 --- a/network/config/multiple-nics/role.role.j2.yaml +++ b/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