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 }} |
| 9 | {%- for interface_name, interface in interfaces.items() %} |
| 10 | {{ interface_name }}: |
| 11 | mtu: 9000 |
| 12 | enabled: true |
| 13 | master: bond1 # ? |
| 14 | name: {{ interface_name }} |
| 15 | proto: manual |
| 16 | type: slave # ? |
| 17 | ipflush_onchange: true |
| 18 | {%- endfor %} |
| 19 | bond1: |
| 20 | enabled: true |
| 21 | mode: active-backup |
| 22 | ovs_bridge: br-floating |
| 23 | ovs_type: OVSPort |
| 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-floating: |
| 36 | enabled: true |
Dennis Dmitriev | cf5f43b | 2017-10-11 15:10:27 +0300 | [diff] [blame^] | 37 | type: ovs_bridge |