blob: 92d03d37cd81b13eef799cc7cb3cdae6355fdaf2 [file] [log] [blame]
Oleksii Butenko93a73442019-05-10 15:00:04 +03001{#- Control network with bond. For control plane nodes #}
2{#- Provides: #}
3{#- br_ctl (linux bridge) + control address #}
4{#- _param:keepalived_vip_interface = 'br_ctl' #}
5{#- Requirements: #}
6{#- _param:single_address #}
7{#- _param:control_network_netmask #}
8{#- _param:control_vlan #}
9 # {{ interfaces_role }}
10 {{- set_param('linux_network_bridge', 'openvswitch') }}
11 {%- for interface_name, interface in interfaces.items() %}
12 {{ interface_name }}:
13 mtu: 9000
14 enabled: true
15 master: bond1
16 name: {{ interface_name }}
17 proto: manual
18 type: slave
19 ipflush_onchange: true
20 {%- endfor %}
21 bond1:
22 enabled: true
23 mode: '802.3ad'
24 proto: manual
25 slaves: {{ ' '.join(interfaces.keys()) }}
26 type: bond
27 use_interfaces:
28 {%- for interface_name in interfaces.keys() %}
29 - {{ interface_name }}
30 {%- endfor %}
31 require_interfaces:
32 {%- for interface_name in interfaces.keys() %}
33 - {{ interface_name }}
34 {%- endfor %}
35 br_ctl:
36 address: ${_param:_esc}{_param:single_address}
37 enabled: true
38 netmask: ${_param:_esc}{_param:control_network_netmask}
39 proto: static
40 type: bridge
41 use_interfaces:
42 - bond1.${_param:_esc}{_param:control_vlan}
43 require_interfaces:
44 - bond1.${_param:_esc}{_param:control_vlan}
45 bond1.control_vlan:
46 name: bond1.${_param:_esc}{_param:control_vlan}
47 enabled: true
48 proto: manual
49 type: vlan
50 use_interfaces:
51 - bond1
52 require_interfaces:
53 - bond1