blob: 78be21a811d5a5db855d50b1d3fe9e8acb43413f [file] [log] [blame]
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03001{#- Provides: #}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03002{#- vhost0 , as a keepalived vip interface #}
3{#- Requirements: #}
4{#- _param:tenant_vlan #}
5{#- _param:tenant_address #}
Dennis Dmitrievcf5f43b2017-10-11 15:10:27 +03006{#- _param:tenant_network_netmask #}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03007{#- _param:tenant_network_gateway #}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03008 # {{ interfaces_role }}
9 {%- for interface_name, interface in interfaces.items() %}
10 {{ interface_name }}:
11 mtu: 9000
12 enabled: true
13 name: {{ interface_name }}
14 proto: manual
15 type: eth
16 ipflush_onchange: true
17 {%- endfor %}
18 bond0:
19 mtu: 9000
20 enabled: true
21 mode: active-backup
22 proto: manual
23 slaves: {{ ' '.join(interfaces.keys()) }}
24 type: bond
25 use_interfaces:
26 {%- for interface_name in interfaces.keys() %}
27 - {{ interface_name }}
28 {%- endfor %}
29 require_interfaces:
30 {%- for interface_name in interfaces.keys() %}
31 - {{ interface_name }}
32 {%- endfor %}
33
34 {{- set_param('keepalived_vip_interface', 'vhost0') }}
35 vhost0:
36 mtu: 9000
37 address: ${_param:_esc}{_param:tenant_address}
38 netmask: ${_param:_esc}{_param:tenant_network_netmask}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030039 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.${_param:_esc}{_param:tenant_vlan}
49 require_interfaces:
50 - bond0.${_param:_esc}{_param:tenant_vlan}
51 bond0.tenant_vlan:
52 mtu: 9000
53 name: bond0.${_param:_esc}{_param:tenant_vlan}
54 enabled: true
55 proto: manual
56 type: vlan
57 use_interfaces:
58 - bond0
59 require_interfaces:
sgudz3dcf8f72017-10-18 17:31:01 +030060 - bond0