From 3db0563967a8ceb16245aeb19777225947822b4f Mon Sep 17 00:00:00 2001 From: Roberto Alfieri Date: Wed, 3 Apr 2024 17:27:56 +0200 Subject: [PATCH] [ci_gen_kustomize_values] Add mac address mapping for `nic1` This patch allow the mapping of the `nic1` to the mac address of the default interface in compute node and is required due to [1] [1] https://github.com/openstack-k8s-operators/architecture/pull/157 Signed-off-by: Roberto Alfieri --- .../templates/hci/edpm-values/values.yaml.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/ci_gen_kustomize_values/templates/hci/edpm-values/values.yaml.j2 b/roles/ci_gen_kustomize_values/templates/hci/edpm-values/values.yaml.j2 index 0f406a2498..5b2b10fa5f 100644 --- a/roles/ci_gen_kustomize_values/templates/hci/edpm-values/values.yaml.j2 +++ b/roles/ci_gen_kustomize_values/templates/hci/edpm-values/values.yaml.j2 @@ -27,6 +27,9 @@ data: edpm_network_config_os_net_config_mappings: {% for instance in instances_names %} edpm-{{ instance }}: +{% if hostvars[instance] is defined %} + nic1: "{{ hostvars[instance].ansible_default_ipv4.macaddress }}" +{% endif %} nic2: "{{ cifmw_networking_env_definition.instances[instance].networks.ctlplane.mac_addr }}" {% endfor %} {% if cifmw_ci_gen_kustomize_values_sshd_ranges | default([]) | length > 0 %}