blob: 2287752e6ca87d23eef68e7ab8bc99d8b9b85a29 [file] [log] [blame]
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03001{#- Tenant over VLAN. For computes without dvr #}
2{#- Provides: #}
3{#- br_ctl (OVS bridge) + control address #}
4{#- br_prv (OVS bridge) #}
5{#- Requirements: #}
6{#- _param:single_address #}
7{#- _param:control_network_netmask #}
8{#- _param:control_vlan #}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03009 # {{ interfaces_role }}
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-prv
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-prv:
37 enabled: true
38 type: ovs_bridge
39 br_ctl:
40 address: ${_param:_esc}{_param:single_address}
41 bridge: br-prv
42 enabled: true
43 netmask: ${_param:_esc}{_param:control_network_netmask}
44 ovs_options: tag=${_param:_esc}{_param:control_vlan}
45 proto: static
46 type: ovs_port
47 require_interfaces:
Dennis Dmitrievcf5f43b2017-10-11 15:10:27 +030048 - br-prv