blob: 72c5092010ca69c7a796d6e1a8bc3306a1f530f7 [file] [log] [blame]
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03001{#- 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 Dmitrievf4826bc2017-09-28 19:03:54 +03008 # {{ interfaces_role }}
Dennis Dmitriev600e6ee2018-02-20 03:55:49 +02009 {{- set_param('linux_network_bridge', 'openvswitch') }}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030010 {%- 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 Dmitrievcf5f43b2017-10-11 15:10:27 +030038 type: ovs_bridge