tripleo-ansible/tripleo_ansible/roles/tripleo_network_config/templates
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
..
2_linux_bonds_vlans Drop use of role_networks_lower 2020-11-27 18:44:13 +01:00
bonds_vlans Drop use of role_networks_lower 2020-11-27 18:44:13 +01:00
ci Fix typo in network config templates 2020-11-27 01:33:25 +00:00
multiple_nics Restore network_data net order nicX contract 2020-11-27 18:44:43 +01:00
multiple_nics_vlans Restore network_data net order nicX contract 2020-11-27 18:44:43 +01:00
single_nic_linux_bridge_vlans Drop use of role_networks_lower 2020-11-27 18:44:13 +01:00
single_nic_vlans Drop use of role_networks_lower 2020-11-27 18:44:13 +01:00
net_config_bond.j2 Adds more nic config templates[1] 2020-09-24 17:27:49 +05:30
net_config_bridge.j2 Adds more nic config templates[1] 2020-09-24 17:27:49 +05:30
net_config_linux_bridge.j2 Adds more nic config templates[1] 2020-09-24 17:27:49 +05:30
net_config_static.j2 Adds more nic config templates[1] 2020-09-24 17:27:49 +05:30
net_config_static_bridge.j2 Adds more nic config templates[1] 2020-09-24 17:27:49 +05:30
net_config_static_bridge_with_external_dhcp.j2 Adds more nic config templates[1] 2020-09-24 17:27:49 +05:30
standalone.j2 Adds more nic config templates[1] 2020-09-24 17:27:49 +05:30
undercloud.j2 Adds more nic config templates[1] 2020-09-24 17:27:49 +05:30