blob: 8b175d6a1fce58804650b9265450b4cfb8ad712a [file] [log] [blame]
abaraniuk136c26e2019-04-04 12:41:40 +03001{#- Interface intended for heat envs #}
2{#- Provides: #}
3{#- vhost0 , as a keepalived vip interface #}
4{#- Requirements: #}
5{#- _param:tenant_address #}
6{#- _param:tenant_network_netmask #}
7{#- _param:tenant_network_gateway #}
8 # {{ interfaces_role }}
9 {%- for interface_name, interface in interfaces.items() %}
10 {{ interface_name }}:
11 mtu: 1450
12 enabled: true
13 master: bond0
14 name: {{ interface_name }}
15 proto: manual
16 type: slave
17 ipflush_onchange: true
18 {%- endfor %}
19 bond0:
20 mtu: 1450
21 enabled: true
22 mode: active-backup
23 proto: manual
24 slaves: {{ ' '.join(interfaces.keys()) }}
25 type: bond
26 use_interfaces:
27 {%- for interface_name in interfaces.keys() %}
28 - {{ interface_name }}
29 {%- endfor %}
30 require_interfaces:
31 {%- for interface_name in interfaces.keys() %}
32 - {{ interface_name }}
33 {%- endfor %}
34 {{- set_param('keepalived_vip_interface', 'vhost0') }}
Dennis Dmitriev31467872019-04-24 16:22:07 +030035 {{- set_param('opencontrail_compute_iface', 'bond0') }}
abaraniuk136c26e2019-04-04 12:41:40 +030036 vhost0:
37 mtu: 1450
38 address: ${_param:_esc}{_param:tenant_address}
39 netmask: ${_param:_esc}{_param:tenant_network_netmask}
40 enabled: true
41 proto: static
42 type: eth
43 pre_up_cmds:
44 - /usr/lib/contrail/if-vhost0
45 name_servers:
46 - ${_param:_esc}{_param:dns_server01}
47 - ${_param:_esc}{_param:dns_server02}
48 use_interfaces:
49 - bond0
50 require_interfaces:
51 - bond0