Oleksii Butenko | 9e1c137 | 2019-10-23 17:04:02 +0300 | [diff] [blame] | 1 | |
| 2 | {#- pxe network with bond. For control plane bmt nodes #} |
| 3 | {#- Provides: #} |
| 4 | # {{ interfaces_role }} |
| 5 | {{- set_param('linux_network_bridge', 'openvswitch') }} |
| 6 | {%- for interface_name, interface in interfaces.items() %} |
| 7 | {{ interface_name }}: |
| 8 | mtu: 9000 |
| 9 | enabled: true |
| 10 | master: bond1 |
| 11 | name: {{ interface_name }} |
| 12 | proto: manual |
| 13 | type: slave |
| 14 | ipflush_onchange: true |
| 15 | {%- endfor %} |
| 16 | bond1: |
| 17 | enabled: true |
| 18 | mode: '802.3ad' |
| 19 | proto: manual |
| 20 | slaves: {{ ' '.join(interfaces.keys()) }} |
| 21 | type: bond |
| 22 | use_interfaces: |
| 23 | {%- for interface_name in interfaces.keys() %} |
| 24 | - {{ interface_name }} |
| 25 | {%- endfor %} |
| 26 | require_interfaces: |
| 27 | {%- for interface_name in interfaces.keys() %} |
| 28 | - {{ interface_name }} |
| 29 | {%- endfor %} |
| 30 | br_baremetal: |
| 31 | enabled: true |
| 32 | proto: manual |
| 33 | type: bridge |
| 34 | use_interfaces: |
| 35 | - bond1.2402 |
| 36 | require_interfaces: |
| 37 | - bond1.2402 |
| 38 | bond1.2402: |
| 39 | name: bond1.2402 |
| 40 | enabled: true |
| 41 | proto: manual |
| 42 | type: vlan |
| 43 | use_interfaces: |
| 44 | - bond1 |
| 45 | require_interfaces: |
| 46 | - bond1 |