blob: 286b36fb6156d1462766bee82b80857753cd01fd [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 }}
Dennis Dmitriev600e6ee2018-02-20 03:55:49 +020010 {{- set_param('linux_network_bridge', 'openvswitch') }}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030011 {%- 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:
Dennis Dmitrievcf5f43b2017-10-11 15:10:27 +030049 - br-prv