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] %}
13 - service.neutron.compute.single
14 - service.neutron.compute.opendaylight.single
15 {%- if '-ovs-' in conf.MCP_DEPLOY_SCENARIO %}
16 - system.nova.compute.nfv.hugepages
17 - system.neutron.compute.nfv.dpdk
19 - cluster.mcp-common-noha.openstack_compute
20 - cluster.mcp-odl-noha
24 vif_plugging_is_fatal: false
25 vif_plugging_timeout: 60
29 ovsdb_server_iface: ptcp:6640:127.0.0.1
34 {%- if '-ovs-' in conf.MCP_DEPLOY_SCENARIO %}
36 name: ${_param:dpdk0_name}
37 pci: ${_param:dpdk0_pci}
38 driver: ${_param:dpdk0_driver}
42 n_rxq: ${_param:dpdk0_n_rxq}
43 mtu: ${_param:interface_mtu}
48 address: ${_param:tenant_address}
49 netmask: ${_param:opnfv_net_private_mask}
50 {{ nm.cmp001.nic_private }}:
51 type: dpdk # Not a meaningful type, just match 'dpdk' for filtering
53 {%- set nics = { nm.cmp001.nic_public: True } %}
54 {%- set vlans = { nm.vlan_public: nm.cmp001.nic_public } %}
56 {{ ma.linux_network_interfaces_nic(nics) }}
58 {{ ma.linux_network_interfaces_vlan(vlans) }}
69 mtu: ${_param:interface_mtu}
71 ovs_bridge: br-floating
76 address: ${_param:external_address}
77 netmask: ${_param:opnfv_net_public_mask}
79 - {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}
82 gateway: ${_param:opnfv_net_public_gw}
83 name_servers: {{ nm.dns_public }}
90 address: ${_param:tenant_address}
91 netmask: ${_param:opnfv_net_private_mask}
93 - {{ ma.interface_str(nm.cmp001.nic_private, vlan_private_start) }}
94 {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}:
96 mtu: ${_param:interface_mtu}
98 ovs_port_type: OVSPort
100 ovs_bridge: br-floating
106 address: ${_param:external_address}
107 netmask: ${_param:opnfv_net_public_mask}
109 - {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}
110 gateway: ${_param:opnfv_net_public_gw}
111 name_servers: {{ nm.dns_public }}
116 /var/tmp/odl_hostconfig.patch:
119 < if datapath_types.find(datapath_type) >= 0)
121 > if datapath_type in datapath_types)
123 < return subprocess.check_output(command_line).strip() # nosec
125 > return subprocess.check_output(command_line).strip().decode() # nosec