update neutron and nova settings
[yaml_builds.git] / site_type / sriov-a13 / templates / software / charts / osh / openstack-compute-kit / neutron.j2
1 ---
2 ##############################################################################
3 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.        #
4 #                                                                            #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
6 # not use this file except in compliance with the License.                   #
7 #                                                                            #
8 # You may obtain a copy of the License at                                    #
9 #       http://www.apache.org/licenses/LICENSE-2.0                           #
10 #                                                                            #
11 # Unless required by applicable law or agreed to in writing, software        #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
14 # See the License for the specific language governing permissions and        #
15 # limitations under the License.                                             #
16 ##############################################################################
17 # This file defines hardware-specific settings for neutron. If you use the same
18 # hardware profile as this environment, you should not need to change this file.
19 # Otherwise, you should review the settings here and adjust for your hardware.
20 # In particular:
21 # 1. logical network interface names
22 # 2. physical device mappigns
23 # TODO: Should move to global layer and become tied to the hardware profile
24
25 schema: armada/Chart/v1
26 metadata:
27   schema: metadata/Document/v1
28   name: neutron
29   replacement: true
30   labels:
31     component: neutron
32   layeringDefinition:
33     abstract: false
34     layer: site
35     parentSelector:
36       name: neutron-global
37     actions:
38       - method: merge
39         path: .
40   storagePolicy: cleartext
41 data:
42   values:
43     labels:
44       agent:
45         sriov:
46           node_selector_key: sriov
47           node_selector_value: enabled
48     network:
49       backend:
50         - openvswitch
51         - sriov
52       interface:
53         #tunnel_device: '{{yaml.networks.neutron.interface}}'
54         sriov:
55 {% for sriovnet in yaml.sriov.nets %}
56           - device: {{sriovnet.interface}}
57             num_vfs: 32
58             promisc: false
59 {% endfor %}
60       auto_bridge_add:
61         br-bond0: {{yaml.networks.neutron.interface}}
62     conf:
63       plugins:
64         openvswitch_agent:
65           ovs:
66             bridge_mappings: bond0:br-bond0
67         sriov_agent:
68           securitygroup:
69             firewall_driver: neutron.agent.firewall.NoopFirewallDriver
70           sriov_nic:
71             exclude_devices: null
72             physical_device_mappings: '
73 {%- for sriovnet in yaml.sriov.nets -%}
74 {%- if loop.index > 1 -%}
75 ,
76 {%- endif -%}
77 {{sriovnet.physical}}:{{sriovnet.interface}}
78 {%- endfor %}'
79         ml2_conf:
80           ml2:
81             mechanism_drivers: l2population,openvswitch,sriovnicswitch
82           ml2_type_vlan:
83             network_vlan_ranges: bond0:46:300
84 {%- for sriovnet in yaml.sriov.nets -%}
85 ,{{sriovnet.physical}}:{{sriovnet.vlan_start}}:{{sriovnet.vlan_end}}
86 {%- endfor %}
87
88 ...
89