Merge "[docs] Updates for Gambia 7.1.0 release"
[fuel.git] / mcp / reclass / classes / cluster / mcp-fdio-ha / openstack / compute_pdf.yml.j2
1 ##############################################################################
2 # Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 {%- import 'net_map.j2' as nm with context %}
9 {%- import 'net_macros.j2' as ma with context %}
10 {#- Filter-out NIC duplicates by constructing a dict (used NICs only) #}
11 {%- set nics = { nm.cmp001.nic_private: True } %}
12 {%- set vlan_private_start = (nm.vlan_private | string).rsplit('-')[0] %}
13 {%- set vlans = { vlan_private_start: nm.cmp001.nic_private } %}
14 ---
15 parameters:
16   linux:
17     network:
18       interface:
19
20 {#- prevent duplicates for tagged mgmt on the same physical interface as PXE/admin #}
21 {%- if nm.cmp001.nic_admin in nics %}
22   {%- do nics.pop(nm.cmp001.nic_admin) %}
23 {%- endif %}
24
25 {{ ma.linux_network_interfaces_nic(nics) }}
26
27 {{ ma.linux_network_interfaces_vlan(vlans) }}
28
29         br-mesh:
30           enabled: true
31           type: bridge
32           address: ${_param:tenant_address}
33           netmask: ${_param:opnfv_net_private_mask}
34           mtu: 1500
35           use_interfaces:
36             - {{ ma.interface_str(nm.cmp001.nic_private, vlan_private_start) }}