blob: 0728d2ca832a87014fa1eb010d7d9166685f2b92 [file] [log] [blame]
Dennis Dmitriev35dd8872018-02-22 15:18:37 +02001{#- Tenant over VXLAN. For gateway and compute nodes #}
2{#- Provides: #}
3{#- br_mesh (OVS bridge) + tenant address #}
4{#- Requirements: #}
5{#- _param:tenant_address #}
6{#- _param:tenant_netmask #}
7{#- _param:tenant_vlan #}
8 # {{ interfaces_role }}
9 {{- set_param('linux_network_bridge', 'openvswitch') }}
10 {%- for interface_name, interface in interfaces.items() %}
11 {{ interface_name }}:
12 mtu: 9000
13 enabled: true
14 master: bond0 # ?
15 name: {{ interface_name }}
16 proto: manual
17 type: slave # ?
18 ipflush_onchange: true
19 {%- endfor %}
20 bond0:
21 enabled: true
22 mode: active-backup
23 ovs_bridge: br-ten
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-ten:
37 enabled: true
38 type: ovs_bridge
39 br-mesh:
40 enabled: true
41 type: ovs_port
42 bridge: br-ten
43 proto: static
44 ovs_options: tag=${_param:_esc}{_param:tenant_vlan}
45 address: ${_param:_esc}{_param:tenant_address}
46 netmask: ${_param:_esc}{_param:tenant_network_netmask}
47 require_interfaces:
48 - br-ten