[ovn/noha] Simplify net scheme on compute nodes
[fuel.git] / mcp / reclass / classes / cluster / mcp-ovn-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.ovn.single
12   - cluster.mcp-common-noha.openstack_compute
13   - cluster.mcp-ovn-noha
14 parameters:
15   neutron:
16     compute:
17       controller_vip: ${_param:cluster_local_address}
18   linux:
19     network:
20       interface:
21         external_interface:
22           enabled: true
23           name: ${_param:external_interface}
24           proto: manual
25           ovs_port_type: OVSPort
26           type: ovs_port
27           ovs_bridge: br-floating
28           bridge: br-floating
29         br-mesh:
30           enabled: true
31           type: bridge
32           proto: static
33           address: ${_param:tenant_address}
34           netmask: ${_param:opnfv_net_private_mask}
35           use_interfaces:
36             - ${_param:tenant_interface}
37         br-floating:
38           enabled: true
39           type: ovs_bridge
40           mtu: ${_param:interface_mtu}
41           proto: static
42           address: ${_param:external_address}
43           netmask: ${_param:opnfv_net_public_mask}
44           use_interfaces:
45             - ${_param:external_interface}
46           gateway: ${_param:opnfv_net_public_gw}
47           name_servers: {{ nm.dns_public }}