tripleo-ansible/tripleo_ansible/roles/tripleo_network_config
Harald Jensås 15c280787e Restore network_data net order nicX contract
With the Heat multi-nic example templates the
loop.index was used to set the nicX for each
interface, and ordered iteration was done over
all networks in network_data.yaml. The ctlplane
was always nic1, then nic2 was mapped to the
first network in the network_data.yaml definition.

When converting multi-nic templates to ansible
the ordering contract between network_data.yaml
and the nicX for each network was broken because
iteration happens only over networks associated
with the role.

This change restores the ordering contract in
the multi-nic templates by iterating over the
'networks_all' group_var which holds all enabled
networks in the order of apperance in
network_data.yaml.

Depends-On: https://review.opendev.org/763497
Closes-Bug: #1904894
Change-Id: I9d2767d7ce4f24645684fde6044c38a4b920dbb1
2020-11-27 18:44:43 +01:00
..
defaults Drop tasks meant to run run_os_net_config.sh 2020-09-26 10:23:43 +05:30
meta Create a role for network config 2020-08-13 09:09:21 -06:00
molecule/default Fix networks_skip_config condition in nic templates 2020-11-24 03:15:09 +00:00
tasks Drop tasks meant to run run_os_net_config.sh 2020-09-26 10:23:43 +05:30
templates Restore network_data net order nicX contract 2020-11-27 18:44:43 +01:00