blob: 53cdb09abd1ae0e198341b32ace73b4fceb24ffe [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 #}
9
10 # {{ interfaces_role }}
11 {%- for interface_name, interface in interfaces.items() %}
12 {{ interface_name }}:
13 mtu: 9000
14 enabled: true
15 master: bond0 # ?
16 name: {{ interface_name }}
17 proto: manual
18 type: slave # ?
19 ipflush_onchange: true
20 {%- endfor %}
21 bond0:
22 enabled: true
23 mode: active-backup
24 ovs_bridge: br-prv
25 ovs_type: OVSPort
26 proto: manual
27 slaves: {{ ' '.join(interfaces.keys()) }}
28 type: bond
29 use_interfaces:
30 {%- for interface_name in interfaces.keys() %}
31 - {{ interface_name }}
32 {%- endfor %}
33 require_interfaces:
34 {%- for interface_name in interfaces.keys() %}
35 - {{ interface_name }}
36 {%- endfor %}
37 br-prv:
38 enabled: true
39 type: ovs_bridge
40 br_ctl:
41 address: ${_param:_esc}{_param:single_address}
42 bridge: br-prv
43 enabled: true
44 netmask: ${_param:_esc}{_param:control_network_netmask}
45 ovs_options: tag=${_param:_esc}{_param:control_vlan}
46 proto: static
47 type: ovs_port
48 require_interfaces:
49 - br-prv