Update openvswitch to 2.10
[fuel.git] / mcp / reclass / classes / cluster / mcp-odl-noha / openstack / gateway.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 {%- set vlan_private_start = (nm.vlan_private | string).rsplit('-')[0] %}
11 ---
12 classes:
13   - cluster.mcp-common-noha.openstack_gateway
14   - service.neutron.gateway.opendaylight.single
15   - cluster.mcp-odl-noha
16 parameters:
17   linux:
18     network:
19       interface:
20 {%- if '-ovs-' in conf.MCP_DEPLOY_SCENARIO %}
21         {{ nm.ctl01.nic_private }}:
22           ovs_bridge: br-prv
23         br-prv:
24           enabled: true
25           type: ovs_bridge
26           mtu: ${_param:interface_mtu}
27           proto: static
28           address: ${_param:tenant_address}
29           netmask: ${_param:opnfv_net_private_mask}
30           use_interfaces:
31             - {{ nm.ctl01.nic_private }}
32 {%- else %}
33         br-mesh:
34           enabled: true
35           type: bridge
36           mtu: ${_param:interface_mtu}
37           proto: static
38           address: ${_param:tenant_address}
39           netmask: ${_param:opnfv_net_private_mask}
40           use_interfaces:
41             - {{ ma.interface_str(nm.ctl01.nic_private, vlan_private_start) }}
42 {%- endif %}