[fdio] Bump compute RAM defaults for virtual PODs
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-noha / openstack_gateway_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 ---
9 {%- import 'net_map.j2' as nm with context %}
10 {%- import 'net_macros.j2' as ma with context %}
11 {#- Filter-out NIC duplicates by constructing a dict (used NICs only) #}
12 {%- set nics = { nm.ctl01.nic_mgmt: True, nm.ctl01.nic_private: True } %}
13 {%- set vlans = { nm.vlan_mgmt: nm.ctl01.nic_mgmt } %}
14 {%- if '-fdio-' in conf.MCP_DEPLOY_SCENARIO %}
15 {%- do nics.update({ nm.ctl01.nic_public: True }) %}
16 {%- do vlans.update({ nm.vlan_public: nm.ctl01.nic_public }) %}
17 {%- elif '-ovs-' not in conf.MCP_DEPLOY_SCENARIO %}
18 {%- set vlan_private_start = (nm.vlan_private | string).rsplit('-')[0] %}
19 {%- do vlans.update({ vlan_private_start: nm.ctl01.nic_private }) %}
20 {%- endif %}
21 parameters:
22   linux:
23     network:
24 {%- if '-fdio-' not in conf.MCP_DEPLOY_SCENARIO %}
25 {%- set floating_br_type = 'ovs_bridge' %}
26       bridge: openvswitch
27 {%- else %}
28 {%- set floating_br_type = 'bridge' %}
29       vpp:
30         enabled: true
31         decimal_interface_names: true
32         # Reuse ovs-dpdk socket mem configuration from IDF
33         dpdk_socket_mem: ${_param:compute_ovs_dpdk_socket_mem}
34         main_core: ${linux:system:kernel:isolcpu}
35         gid: 'neutron'
36         commands: |
37           create tap host-if-name vpp_ext_tap host-bridge br-floating rx-ring-size 1024 tx-ring-size 1024
38           set interface state ${_param:external_vpp_tap} up
39       dpdk:
40         enabled: true
41         driver: "${_param:compute_dpdk_driver}"
42 {%- endif %}
43       interface:
44         pxe_admin_int:
45           enabled: true
46           name: {{ nm.ctl01.nic_admin }}
47           proto: static
48           type: eth
49           address: ${_param:pxe_admin_address}
50           netmask: ${_param:opnfv_net_admin_mask}
51           mtu: ${_param:interface_mtu}
52           noifupdown: true
53
54 {#- prevent duplicates for tagged mgmt on the same physical interface as PXE/admin #}
55 {%- if nm.ctl01.nic_admin in nics %}
56   {%- do nics.pop(nm.ctl01.nic_admin) %}
57 {%- endif %}
58
59 {{ ma.linux_network_interfaces_nic(nics) }}
60
61 {{ ma.linux_network_interfaces_vlan(vlans) }}
62
63 {%- if '-fdio-' not in conf.MCP_DEPLOY_SCENARIO %}
64         {{ ma.interface_str(nm.ctl01.nic_public, nm.vlan_public) }}:
65           enabled: true
66           mtu: ${_param:interface_mtu}
67           proto: manual
68           ovs_port_type: OVSPort
69           type: ovs_port
70           ovs_bridge: br-floating
71           bridge: br-floating
72 {%- endif %}
73         br-floating:
74           enabled: true
75           type: {{ floating_br_type }}
76           proto: static
77           address: ${_param:external_address}
78           netmask: ${_param:opnfv_net_public_mask}
79           gateway: ${_param:opnfv_net_public_gw}
80           name_servers: {{ nm.dns_public }}
81           use_interfaces:
82             - {{ ma.interface_str(nm.ctl01.nic_public, nm.vlan_public) }}
83           noifupdown: true
84         br-mgmt:
85           enabled: true
86           type: bridge
87           proto: static
88           address: ${_param:single_address}
89           netmask: ${_param:opnfv_net_mgmt_mask}
90           mtu: ${_param:interface_mtu}
91           use_interfaces:
92             - {{ ma.interface_str(nm.ctl01.nic_mgmt, nm.vlan_mgmt) }}