From 42c5fa16ad2e3533909d468c9f02dcf8040b5e62 Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Tue, 27 Oct 2020 15:23:19 +0530 Subject: [PATCH] Update some more environments to use new ansible nic config This changes environments missed earlier that still use old heat nic config. Change-Id: I9e3e3a1007103e0387314991eaf6325aa2128cb4 --- environments/network-environment-v6-all.j2.yaml | 12 +++++++++--- environments/network-environment-v6.j2.yaml | 11 +++++++++-- environments/network-environment.j2.yaml | 11 +++++++++-- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/environments/network-environment-v6-all.j2.yaml b/environments/network-environment-v6-all.j2.yaml index 6e6df2a67e..c6c5ec1037 100644 --- a/environments/network-environment-v6-all.j2.yaml +++ b/environments/network-environment-v6-all.j2.yaml @@ -7,14 +7,20 @@ resource_registry: # such as net-bond-with-vlans-v6.yaml, or modifying the list here. {%- for role in roles %} # Port assignments for the {{role.name}} - OS::TripleO::{{role.name}}::Net::SoftwareConfig: - ../network/config/single-nic-vlans/{{role.deprecated_nic_config_name|default(role.name.lower() ~ ".yaml")}} + OS::TripleO::{{role.name}}::Net::SoftwareConfig: OS::Heat::None {%- endfor %} parameter_defaults: # This section is where deployment-specific configuration is done # - # +{%- for role in roles %} +{%- if 'storage' in role.tags %} + {{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans_storage.j2' +{%- else %} + {{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans.j2' +{%- endif %} +{%- endfor %} + {% for network in networks if network.enabled|default(true) %} # Customize the IP subnets to match the local environment {{network.name}}NetCidr: '{{network.ipv6_subnet}}' diff --git a/environments/network-environment-v6.j2.yaml b/environments/network-environment-v6.j2.yaml index cddec129c5..21eafcd1d3 100644 --- a/environments/network-environment-v6.j2.yaml +++ b/environments/network-environment-v6.j2.yaml @@ -10,13 +10,20 @@ resource_registry: # such as net-bond-with-vlans-v6.yaml, or modifying the list here. {%- for role in roles %} # Port assignments for the {{role.name}} - OS::TripleO::{{role.name}}::Net::SoftwareConfig: - ../network/config/single-nic-vlans/{{role.deprecated_nic_config_name|default(role.name.lower() ~ ".yaml")}} + OS::TripleO::{{role.name}}::Net::SoftwareConfig: OS::Heat::None {%- endfor %} parameter_defaults: # This section is where deployment-specific configuration is done # +{%- for role in roles %} +{%- if 'storage' in role.tags %} + {{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans_storage.j2' +{%- else %} + {{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans.j2' +{%- endif %} +{%- endfor %} + {% for network in networks if network.enabled|default(true) %} {%- if network.name != 'Tenant' %} # Customize the IP subnets to match the local environment diff --git a/environments/network-environment.j2.yaml b/environments/network-environment.j2.yaml index 8bbe577ee0..7ebbf0ada8 100644 --- a/environments/network-environment.j2.yaml +++ b/environments/network-environment.j2.yaml @@ -6,13 +6,20 @@ resource_registry: # such as net-bond-with-vlans.yaml, or modifying the list here. {%- for role in roles %} # Port assignments for the {{role.name}} - OS::TripleO::{{role.name}}::Net::SoftwareConfig: - ../network/config/single-nic-vlans/{{role.deprecated_nic_config_name|default(role.name.lower() ~ ".yaml")}} + OS::TripleO::{{role.name}}::Net::SoftwareConfig: OS::Heat::None {%- endfor %} parameter_defaults: # This section is where deployment-specific configuration is done # +{%- for role in roles %} +{%- if 'storage' in role.tags %} + {{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans_storage.j2' +{%- else %} + {{role.name}}NetworkConfigTemplate: 'templates/single_nic_vlans/single_nic_vlans.j2' +{%- endif %} +{%- endfor %} + {% for network in networks if network.enabled|default(true) %} # Customize the IP subnet to match the local environment {%- if network.ipv6|default(false) %}