blob: 9c8129ea923c2750d5fcfcd4be294773021a3824 [file] [log] [blame]
Oleksii Butenkoe2a392f2019-02-22 16:43:43 +02001{#- 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 }}
Oleksii Butenkoc02adb42019-03-06 12:15:30 +020010 {{- set_param('linux_network_bridge', 'openvswitch') }}
Oleksii Butenkoe2a392f2019-02-22 16:43:43 +020011 {%- for interface_name, interface in interfaces.items() %}
12 {{ interface_name }}:
13 mtu: 9000
14 enabled: true
15 master: bond0
16 name: {{ interface_name }}
17 proto: manual
18 type: slave
19 ipflush_onchange: true
20 {%- endfor %}
21 bond0:
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 - bond0.${_param:_esc}{_param:control_vlan}
43 require_interfaces:
44 - bond0.${_param:_esc}{_param:control_vlan}
45 bond0.control_vlan:
46 name: bond0.${_param:_esc}{_param:control_vlan}
47 enabled: true
48 proto: manual
49 type: vlan
50 use_interfaces:
51 - bond0
52 require_interfaces:
53 - bond0