[noha] Rectify opendaylight+dpdk scenario
[fuel.git] / mcp / reclass / classes / cluster / mcp-odl-noha / openstack / compute.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 ---
10 classes:
11   - service.neutron.compute.single
12   - service.neutron.compute.opendaylight.single
13 {%- if conf.MCP_DPDK_MODE %}
14   - system.nova.compute.nfv.hugepages
15   - system.neutron.compute.nfv.dpdk
16 {%- endif %}
17   - cluster.mcp-common-noha.openstack_compute
18   - cluster.mcp-odl-noha
19 parameters:
20   linux:
21     network:
22       interface:
23 {%- if conf.MCP_DPDK_MODE %}
24         dpdk0:
25           name: ${_param:dpdk0_name}
26           pci: ${_param:dpdk0_pci}
27           driver: ${_param:dpdk0_driver}
28           enabled: true
29           bridge: br-prv
30           type: dpdk_ovs_port
31           n_rxq: ${_param:dpdk0_n_rxq}
32         br-prv:
33           enabled: true
34           type: dpdk_ovs_bridge
35           proto: static
36           address: ${_param:tenant_address}
37           netmask: ${_param:opnfv_net_private_mask}
38         tenant_interface:
39           type: dpdk  # Not a meaningful type, just match 'dpdk' for filtering
40 {%- else %}
41         br-mesh:
42           enabled: true
43           type: bridge
44           proto: static
45           address: ${_param:tenant_address}
46           netmask: ${_param:opnfv_net_private_mask}
47           use_interfaces:
48             - ${_param:tenant_interface}
49 {%- endif %}
50         external_interface:
51           enabled: true
52           type: eth
53           name: ${_param:external_interface}
54           mtu: ${_param:interface_mtu}
55           proto: manual
56         br-floating:
57           enabled: true
58           type: ovs_bridge
59           mtu: ${_param:interface_mtu}
60         float-to-ex:
61           enabled: true
62           type: ovs_port
63           mtu: ${_param:interface_mtu}
64           bridge: br-floating
65         br-ex:
66           enabled: true
67           type: bridge
68           mtu: ${_param:interface_mtu}
69           address: ${_param:external_address}
70           netmask: ${_param:opnfv_net_public_mask}
71           use_interfaces:
72             - ${_param:external_interface}
73           use_ovs_ports:
74             - float-to-ex
75           gateway: ${_param:opnfv_net_public_gw}
76           name_servers: {{ nm.dns_public }}