blob: 5ec9ddcc955589996b622d26b04f97900c65b82a [file] [log] [blame]
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03001{#- Tenant over VXLAN. For gateway and compute nodes #}
2{#- Provides: #}
3{#- br_ctl (OVS bridge) + control address #}
4{#- br_mesh (OVS bridge) + tenant address #}
5{#- Requirements: #}
6{#- _param:single_address #}
7{#- _param:control_network_netmask #}
8{#- _param:control_vlan #}
9{#- _param:tenant_address #}
10{#- _param:tenant_netmask #}
11{#- _param:tenant_vlan #}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030012 # {{ interfaces_role }}
13 {%- for interface_name, interface in interfaces.items() %}
14 {{ interface_name }}:
15 mtu: 9000
16 enabled: true
17 master: bond0 # ?
18 name: {{ interface_name }}
19 proto: manual
20 type: slave # ?
21 ipflush_onchange: true
22 {%- endfor %}
23 bond0:
24 enabled: true
25 mode: active-backup
26 ovs_bridge: br-ten
27 ovs_type: OVSPort
28 proto: manual
29 slaves: {{ ' '.join(interfaces.keys()) }}
30 type: bond
31 use_interfaces:
32 {%- for interface_name in interfaces.keys() %}
33 - {{ interface_name }}
34 {%- endfor %}
35 require_interfaces:
36 {%- for interface_name in interfaces.keys() %}
37 - {{ interface_name }}
38 {%- endfor %}
39 br-ten:
40 enabled: true
41 type: ovs_bridge
42 br_ctl:
43 address: ${_param:_esc}{_param:single_address}
44 bridge: br-ten
45 enabled: true
46 netmask: ${_param:_esc}{_param:control_network_netmask}
47 ovs_options: tag=${_param:_esc}{_param:control_vlan}
48 proto: static
49 type: ovs_port
50 require_interfaces:
51 - br-ten
52 br-mesh:
53 enabled: true
54 type: ovs_port
55 bridge: br-ten
56 proto: static
57 ovs_options: tag=${_param:_esc}{_param:tenant_vlan}
58 address: ${_param:_esc}{_param:tenant_address}
59 netmask: ${_param:_esc}{_param:tenant_network_netmask}
60 require_interfaces:
Dennis Dmitrievcf5f43b2017-10-11 15:10:27 +030061 - br-ten