blob: 7ff1dedf0f3a99e07e2fc6c8793f4c43df007c33 [file] [log] [blame]
{#- Tenant over VXLAN. For gateway and compute nodes #}
{#- Provides: #}
{#- br_ctl (OVS bridge) + control address #}
{#- br_mesh (OVS bridge) + tenant address #}
{#- Requirements: #}
{#- _param:single_address #}
{#- _param:control_network_netmask #}
{#- _param:control_vlan #}
{#- _param:tenant_address #}
{#- _param:tenant_netmask #}
{#- _param:tenant_vlan #}
# {{ interfaces_role }}
{{- set_param('linux_network_bridge', 'openvswitch') }}
{%- for interface_name, interface in interfaces.items() %}
{{ interface_name }}:
mtu: 9000
enabled: true
master: bond0 # ?
name: {{ interface_name }}
proto: manual
type: slave # ?
ipflush_onchange: true
{%- endfor %}
bond0:
enabled: true
mode: active-backup
ovs_bridge: br-ten
ovs_type: OVSPort
proto: manual
slaves: {{ ' '.join(interfaces.keys()) }}
type: bond
use_interfaces:
{%- for interface_name in interfaces.keys() %}
- {{ interface_name }}
{%- endfor %}
require_interfaces:
{%- for interface_name in interfaces.keys() %}
- {{ interface_name }}
{%- endfor %}
br-ten:
enabled: true
type: ovs_bridge
br_ctl:
address: ${_param:_esc}{_param:single_address}
bridge: br-ten
enabled: true
netmask: ${_param:_esc}{_param:control_network_netmask}
ovs_options: tag=${_param:_esc}{_param:control_vlan}
proto: static
type: ovs_port
require_interfaces:
- br-ten
br-mesh:
enabled: true
type: ovs_port
bridge: br-ten
proto: static
ovs_options: tag=${_param:_esc}{_param:tenant_vlan}
address: ${_param:_esc}{_param:tenant_address}
netmask: ${_param:_esc}{_param:tenant_network_netmask}
require_interfaces:
- br-ten