2018-09-22 18:59:54 -07:00
|
|
|
# This template configures each role to use a pair of bonded nics (nic2 and
|
|
|
|
# nic3) and configures an IP address on each relevant isolated network
|
|
|
|
# for each role. This template assumes use of network-isolation.yaml.
|
|
|
|
#
|
|
|
|
# NOTE: This version of the templates uses two Linux bonds, but
|
|
|
|
# reuses the BondInterfaceOvsOptions parameter for both bond
|
|
|
|
# configurations. You can modify this template to have two
|
|
|
|
# different parameters for the bonds if options differ.
|
2020-10-13 14:15:19 +05:30
|
|
|
|
2018-09-22 18:59:54 -07:00
|
|
|
resource_registry:
|
|
|
|
{%- for role in roles %}
|
2020-10-13 14:15:19 +05:30
|
|
|
OS::TripleO::{{role.name}}::Net::SoftwareConfig: OS::Heat::None
|
|
|
|
{%- endfor %}
|
|
|
|
parameter_defaults:
|
|
|
|
{%- for role in roles %}
|
|
|
|
{%- if 'ovsdpdk' in role.tags %}
|
|
|
|
{{role.name}}NetworkConfigTemplate: 'templates/2_linux_bonds_vlans/2_linux_bonds_vlans_dpdk.j2'
|
|
|
|
{%- else %}
|
|
|
|
{{role.name}}NetworkConfigTemplate: 'templates/2_linux_bonds_vlans/2_linux_bonds_vlans.j2'
|
|
|
|
{%- endif %}
|
2018-09-22 18:59:54 -07:00
|
|
|
{%- endfor %}
|