blob: fd4dfd5582b1f125ad0f7a275c983e6dbda12b9f [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') }}
35 vhost0:
36 mtu: 1450
37 address: ${_param:_esc}{_param:tenant_address}
38 netmask: ${_param:_esc}{_param:tenant_network_netmask}
39 enabled: true
40 proto: static
41 type: eth
42 pre_up_cmds:
43 - /usr/lib/contrail/if-vhost0
44 name_servers:
45 - ${_param:_esc}{_param:dns_server01}
46 - ${_param:_esc}{_param:dns_server02}
47 use_interfaces:
48 - bond0
49 require_interfaces:
50 - bond0