Our hardcoded index for the compute role interferes with PODs
having less than the hardcoded expected node count.
Change-Id: Icb8915c257d2e3305793397a51b00f96ed260c5f
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
{#- Physical interface OS name for each network (e.g. em1, enp1s0f1) #}
{%- for role in [ctl01, cmp001] %}
+ {%- if role.idx < conf.nodes | length %}
{%- set node = conf.idf.fuel.network.node[role.idx] %}
{%- do role.update({
'nic_mcp': node.interfaces[idx_mcp],
'nic_public': node.interfaces[idx_public],
'bus_private': node.busaddr[idx_private]}) %}
{#- PCI addresses are only used on computes for DPDK on private net #}
+ {%- endif %}
{%- endfor %}
{%- set net_admin = [net.admin.network, net.admin.mask] | join("/") %}