Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 1 | {#- Floating on a separated bond interfaces. For gateway nodes and computes with dvr #} |
| 2 | {#- Provides: #} |
| 3 | {#- br_floating (OVS bridge) #} |
| 4 | {#- Requirements: #} |
| 5 | {#- _param:?addr #} |
| 6 | {#- _param:?mask #} |
| 7 | {#- _param:?vlan #} |
Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 8 | # {{ interfaces_role }} |
Dennis Dmitriev | 600e6ee | 2018-02-20 03:55:49 +0200 | [diff] [blame] | 9 | {{- set_param('linux_network_bridge', 'openvswitch') }} |
Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 10 | {%- for interface_name, interface in interfaces.items() %} |
| 11 | {{ interface_name }}: |
| 12 | mtu: 9000 |
| 13 | enabled: true |
| 14 | master: bond1 # ? |
| 15 | name: {{ interface_name }} |
| 16 | proto: manual |
| 17 | type: slave # ? |
| 18 | ipflush_onchange: true |
| 19 | {%- endfor %} |
| 20 | bond1: |
| 21 | enabled: true |
| 22 | mode: active-backup |
| 23 | ovs_bridge: br-floating |
| 24 | ovs_type: OVSPort |
| 25 | proto: manual |
| 26 | slaves: {{ ' '.join(interfaces.keys()) }} |
| 27 | type: bond |
| 28 | use_interfaces: |
| 29 | {%- for interface_name in interfaces.keys() %} |
| 30 | - {{ interface_name }} |
| 31 | {%- endfor %} |
| 32 | require_interfaces: |
| 33 | {%- for interface_name in interfaces.keys() %} |
| 34 | - {{ interface_name }} |
| 35 | {%- endfor %} |
| 36 | br-floating: |
| 37 | enabled: true |
Dennis Dmitriev | cf5f43b | 2017-10-11 15:10:27 +0300 | [diff] [blame] | 38 | type: ovs_bridge |