Update OpenDaylight version to Neon
[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_port_type: OVSPort
23           type: ovs_port
24           bridge: br-prv
25           ovs_bridge: br-prv
26         br-prv:
27           enabled: true
28           type: ovs_bridge
29           mtu: ${_param:interface_mtu}
30           proto: static
31           address: ${_param:tenant_address}
32           netmask: ${_param:opnfv_net_private_mask}
33           use_interfaces:
34             - {{ nm.ctl01.nic_private }}
35 {%- else %}
36         br-mesh:
37           enabled: true
38           type: bridge
39           mtu: ${_param:interface_mtu}
40           proto: static
41           address: ${_param:tenant_address}
42           netmask: ${_param:opnfv_net_private_mask}
43           use_interfaces:
44             - {{ ma.interface_str(nm.ctl01.nic_private, vlan_private_start) }}
45 {%- endif %}
46     system:
47       file:
48         /var/tmp/odl_hostconfig.patch:
49           contents: |
50             420c420
51             <                 if datapath_types.find(datapath_type) >= 0)
52             ---
53             >                 if datapath_type in datapath_types)
54             460c460
55             <         return subprocess.check_output(command_line).strip()  # nosec
56             ---
57             >         return subprocess.check_output(command_line).strip().decode()  # nosec