update sr-iov templates to openstack rocky
[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
42 data:
43   values:
44     labels:
45       agent:
46         sriov:
47           node_selector_key: sriov
48           node_selector_value: enabled
49     network:
50       auto_bridge_add: {br-ex: bond0}
51       backend:
52         - openvswitch
53         - sriov
54       interface:
55         tunnel_device: '{{yaml.networks.neutron.interface}}'
56       sriov:
57 {% for sriovnet in yaml.sriov.nets %}
58         - device: {{sriovnet.interface}}
59           num_vfs: 32
60           mtu: 9000
61           promisc: false
62 {% endfor %}
63     conf:
64       # auto_bridge_add:
65       #   br-ex: {{yaml.networks.neutron.interface}}
66       dhcp_lease_duration: = 86400
67       plugins:
68         openvswitch_agent:
69           agent:
70             tunnel_types: vxlan
71           ovs:
72             bridge_mappings: "bond0:br-ex"
73         sriov_agent:
74           securitygroup:
75             firewall_driver: neutron.agent.firewall.NoopFirewallDriver
76           sriov_nic:
77             exclude_devices: ""
78             physical_device_mappings: '
79 {%- for sriovnet in yaml.sriov.nets -%}
80 {%- if loop.index > 1 -%},{%- endif -%}
81 {{sriovnet.physical}}:{{sriovnet.interface}}
82 {%- endfor -%}'
83         ml2_conf:
84           ml2:
85             mechanism_drivers: openvswitch,l2population,sriovnicswitch
86             # type_drivers: flat,vlan
87             # tenant_network_types: vlan
88           ml2_type_vlan:
89             network_vlan_ranges: bond0:46:300
90 {%- for sriovnet in yaml.sriov.nets -%}
91 ,{{sriovnet.physical}}:{{sriovnet.vlan_start}}:{{sriovnet.vlan_end}}
92 {%- endfor %}
93
94           # ml2_type_flat:
95           #  flat_networks: public
96         ml2_conf_sriov: null
97       paste:
98         app:neutronversions:
99           paste.app_factory: neutron.pecan_wsgi.app:versions_factory
100   dependencies:
101     - openstack-neutron-helm-toolkit
102 ---
103 schema: armada/Chart/v1
104 metadata:
105   schema: metadata/Document/v1
106   name: openstack-neutron-helm-toolkit
107   layeringDefinition:
108     abstract: false
109     layer: global
110   storagePolicy: cleartext
111   substitutions:
112     - src:
113         schema: pegleg/SoftwareVersions/v1
114         name: software-versions
115         path: .charts.osh.neutron-htk
116       dest:
117         path: .source
118 data:
119   chart_name: openstack-neutron-helm-toolkit
120   release: openstack-neutron-helm-toolkit
121   namespace: helm-toolkit
122   values: {}
123   dependencies: []
124 ...