blob: 8de76d63b9ce55c279870ec92949af5670d45b55 [file] [log] [blame]
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03001{#- Provides: #}
2{#- br_mesh (linux bridge) + tenant address #}
3{#- vhost0 , as a keepalived vip interface #}
4{#- Requirements: #}
5{#- _param:tenant_vlan #}
6{#- _param:tenant_address #}
7{#- _param:tenant_netmask #}
8{#- _param:tenant_network_gateway #}
9
10 # {{ interfaces_role }}
11 {%- for interface_name, interface in interfaces.items() %}
12 {{ interface_name }}:
13 mtu: 9000
14 enabled: true
15 name: {{ interface_name }}
16 proto: manual
17 type: eth
18 ipflush_onchange: true
19 {%- endfor %}
20 bond0:
21 mtu: 9000
22 enabled: true
23 mode: active-backup
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
36 {{- set_param('keepalived_vip_interface', 'vhost0') }}
37 vhost0:
38 mtu: 9000
39 address: ${_param:_esc}{_param:tenant_address}
40 netmask: ${_param:_esc}{_param:tenant_network_netmask}
41 gateway: ${_param:_esc}{_param:tenant_network_gateway}
42 enabled: true
43 proto: static
44 type: eth
45 pre_up_cmds:
46 - /usr/lib/contrail/if-vhost0
47 name_servers:
48 - ${_param:_esc}{_param:dns_server01}
49 - ${_param:_esc}{_param:dns_server02}
50 use_interfaces:
51 - bond0.${_param:_esc}{_param:tenant_vlan}
52 require_interfaces:
53 - bond0.${_param:_esc}{_param:tenant_vlan}
54 bond0.tenant_vlan:
55 mtu: 9000
56 name: bond0.${_param:_esc}{_param:tenant_vlan}
57 enabled: true
58 proto: manual
59 type: vlan
60 use_interfaces:
61 - bond0
62 require_interfaces:
63 - bond0