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