1657cb517c906eb1c78a3b5d56b220a91742406a
[yaml_builds.git] / site_type / sriov / 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
18 schema: armada/Chart/v1
19 metadata:
20   schema: metadata/Document/v1
21   name: neutron
22   replacement: true
23   labels:
24     component: neutron
25   layeringDefinition:
26     abstract: false
27     layer: site
28     parentSelector:
29       name: neutron-global
30     actions:
31       - method: merge
32         path: .
33   storagePolicy: cleartext
34 data:
35   values:
36     labels:
37       agent:
38         sriov:
39           node_selector_key: sriov
40           node_selector_value: enabled
41     network:
42       backend:
43         - openvswitch
44         - sriov
45       interface:
46         sriov:
47 {% for sriovnet in yaml.sriovnets %}
48           - device: {{sriovnet.interface}}
49             num_vfs: 32
50             promisc: false
51 {% endfor %}
52     conf:
53       plugins:
54         openvswitch_agent:
55           ovs:
56             bridge_mappings: bond0:br-bond0
57         sriov_agent:
58           securitygroup:
59             firewall_driver: neutron.agent.firewall.NoopFirewallDriver
60           sriov_nic:
61             exclude_devices: null
62             physical_device_mappings: ' 
63 {%- for sriovnet in yaml.sriovnets -%}
64 {%- if loop.index > 1 -%}
65 ,
66 {%- endif -%}
67 {{sriovnet.physical}}:{{sriovnet.interface}}
68 {%- endfor %}'
69         ml2_conf:
70           ml2:
71             mechanism_drivers: l2population,openvswitch,sriovnicswitch
72           ml2_type_vlan:
73             network_vlan_ranges: bond0:46:300
74 {%- for sriovnet in yaml.sriovnets -%}
75 ,{{sriovnet.physical}}:{{sriovnet.vlan_start}}:{{sriovnet.vlan_end}}
76 {%- endfor %}
77
78 ...