blob: 7ff1dedf0f3a99e07e2fc6c8793f4c43df007c33 [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 }}
Dennis Dmitriev600e6ee2018-02-20 03:55:49 +020013 {{- set_param('linux_network_bridge', 'openvswitch') }}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030014 {%- for interface_name, interface in interfaces.items() %}
15 {{ interface_name }}:
16 mtu: 9000
17 enabled: true
18 master: bond0 # ?
19 name: {{ interface_name }}
20 proto: manual
21 type: slave # ?
22 ipflush_onchange: true
23 {%- endfor %}
24 bond0:
25 enabled: true
26 mode: active-backup
27 ovs_bridge: br-ten
28 ovs_type: OVSPort
29 proto: manual
30 slaves: {{ ' '.join(interfaces.keys()) }}
31 type: bond
32 use_interfaces:
33 {%- for interface_name in interfaces.keys() %}
34 - {{ interface_name }}
35 {%- endfor %}
36 require_interfaces:
37 {%- for interface_name in interfaces.keys() %}
38 - {{ interface_name }}
39 {%- endfor %}
40 br-ten:
41 enabled: true
42 type: ovs_bridge
43 br_ctl:
44 address: ${_param:_esc}{_param:single_address}
45 bridge: br-ten
46 enabled: true
47 netmask: ${_param:_esc}{_param:control_network_netmask}
48 ovs_options: tag=${_param:_esc}{_param:control_vlan}
49 proto: static
50 type: ovs_port
51 require_interfaces:
52 - br-ten
53 br-mesh:
54 enabled: true
55 type: ovs_port
56 bridge: br-ten
57 proto: static
58 ovs_options: tag=${_param:_esc}{_param:tenant_vlan}
59 address: ${_param:_esc}{_param:tenant_address}
60 netmask: ${_param:_esc}{_param:tenant_network_netmask}
61 require_interfaces:
Dennis Dmitrievcf5f43b2017-10-11 15:10:27 +030062 - br-ten