blob: 371cbc285f4b489fd9e84aac1f3fedb782523d77 [file] [log] [blame]
Oleksii Butenko93a73442019-05-10 15:00:04 +03001{#- Provides: #}
2{#- vhost0 , as a keepalived vip interface #}
3{#- Requirements: #}
4{#- _param:tenant_vlan #}
5{#- _param:tenant_address #}
6{#- _param:tenant_network_netmask #}
7{#- _param:tenant_network_gateway #}
8 # {{ interfaces_role }}
9 {{- set_param('linux_network_bridge', 'openvswitch') }}
10 {%- for interface_name, interface in interfaces.items() %}
11 {{ interface_name }}:
12 mtu: 9000
13 enabled: true
14 master: bond0
15 name: {{ interface_name }}
16 proto: manual
17 type: slave
18 ipflush_onchange: true
19 {%- endfor %}
20 bond0:
21 mtu: 9000
22 enabled: true
23 mode: '802.3ad'
24 proto: manual
25 slaves: {{ ' '.join(interfaces.keys()) }}
26 type: bond
27 use_interfaces:
28 {%- for interface_name in interfaces.keys() %}
29 - {{ interface_name }}
30 {%- endfor %}
31 require_interfaces:
32 {%- for interface_name in interfaces.keys() %}
33 - {{ interface_name }}
34 {%- endfor %}
35 {{- set_param('keepalived_vip_interface', 'vhost0') }}
36 vhost0:
37 mtu: 9000
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.${_param:_esc}{_param:tenant_vlan}
50 require_interfaces:
51 - bond0.${_param:_esc}{_param:tenant_vlan}
52 bond0.tenant_vlan:
53 mtu: 9000
54 name: bond0.${_param:_esc}{_param:tenant_vlan}
55 enabled: true
56 proto: manual
57 type: vlan
58 use_interfaces:
59 - bond0
60 require_interfaces:
61 - bond0