blob: ddccf20de6abc1458196729f7d5475f140f60ab6 [file] [log] [blame]
Dennis Dmitriev3f349bd2018-11-30 16:25:47 +02001{#- Tenant over VXLAN. For gateway and compute nodes #}
2{#- Provides: #}
3{#- br_ctl (OVS bridge) + control address #}
4{#- br_mesh (OVS bridge) + tenant address #}
5{#- Requirements: #}
6{#- _param:single_address #}
7{#- _param:control_network_netmask #}
8{#- _param:control_vlan #}
9{#- _param:tenant_address #}
10{#- _param:tenant_netmask #}
11{#- _param:tenant_vlan #}
12 # {{ interfaces_role }}
13 {{- set_param('linux_network_bridge', 'openvswitch') }}
14 {%- for interface_name, interface in interfaces.items() %}
15 {{ interface_name }}:
16 mtu: 9000
17 enabled: true
18 master: bond0 # ?
19 name: {{ interface_name }}
20 proto: manual
21 type: slave # ?
22 ipflush_onchange: true
23 {%- endfor %}
24 bond0:
25 enabled: true
26 mode: active-backup
27 proto: manual
28 slaves: {{ ' '.join(interfaces.keys()) }}
29 type: bond
30 use_interfaces:
31 {%- for interface_name in interfaces.keys() %}
32 - {{ interface_name }}
33 {%- endfor %}
34 require_interfaces:
35 {%- for interface_name in interfaces.keys() %}
36 - {{ interface_name }}
37 {%- endfor %}
38 # bond for cluster communication on _param:public_network
39 bond0.1:
40 name: bond1.${_param:control_vlan}
41 enabled: true
42 type: vlan
43 proto: static
44 address: ${_param:single_address}
45 netmask: ${_param:control_network_netmask}
46 use_interfaces:
47 - bond0
48 mesh: control
49 bond1.2:
50 name: bond1.${_param:backend_vlan}
51 enabled: true
52 type: vlan
53 proto: static
54 address: ${_param:backend_address}
55 netmask: ${_param:backend_network_netmask}
56 use_interfaces:
57 - bond1
58 mesh: storage_replication