Make MTU cluster-level configurable via IDF
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-ha / openstack_interface_vcp_triport.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 ---
11 {%- if conf.MCP_VCP %}
12 classes:
13   - cluster.all-mcp-arch-common.opnfv.maas_proxy
14   - cluster.all-mcp-arch-common.opnfv.lab_proxy_pdf
15 parameters:
16   _param:
17     pxe_admin_interface: ${_param:opnfv_vcp_vm_primary_interface}
18     single_nic: ${_param:opnfv_vcp_vm_secondary_interface}
19     control_nic: ${_param:opnfv_vcp_vm_tertiary_interface}
20   linux:
21     network:
22       interface:
23         pxe_admin:
24           enabled: true
25           type: eth
26           proto: static
27           name: ${_param:pxe_admin_interface}
28           address: ${_param:pxe_admin_address}
29           netmask: ${_param:opnfv_net_admin_mask}
30           noifupdown: true
31           mtu: ${_param:interface_mtu}
32         single_int:
33           enabled: true
34           type: eth
35           proto: static
36           name: ${_param:single_nic}
37           address: ${_param:single_address}
38           netmask: ${_param:opnfv_net_public_mask}
39           gateway: ${_param:opnfv_net_public_gw}
40           name_servers: {{ nm.dns_public }}
41           mtu: ${_param:interface_mtu}
42         control_int:
43           enabled: true
44           type: eth
45           proto: static
46           name: ${_param:control_nic}
47           address: ${_param:control_address}
48           netmask: ${_param:opnfv_net_mgmt_mask}
49           mtu: ${_param:interface_mtu}
50 {%- else %}
51 {#- For NOVCP scenarios, base config is in kvm_pdf, only add/override gw #}
52 parameters:
53   linux:
54     network:
55       interface:
56         br-ex:
57           proto: static
58           gateway: ${_param:opnfv_net_public_gw}
59           name_servers: {{ nm.dns_public }}
60 {%- endif %}