Adaptations for OVS-DPDK blueprint
[yaml_builds.git] / site_type / ovsdpdk-a13 / templates / software / charts / osh / openstack-compute-kit / neutron.j2
diff --git a/site_type/ovsdpdk-a13/templates/software/charts/osh/openstack-compute-kit/neutron.j2 b/site_type/ovsdpdk-a13/templates/software/charts/osh/openstack-compute-kit/neutron.j2
new file mode 100644 (file)
index 0000000..3a54c05
--- /dev/null
@@ -0,0 +1,105 @@
+---
+##############################################################################
+# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.        #
+#                                                                            #
+# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
+# not use this file except in compliance with the License.                   #
+#                                                                            #
+# You may obtain a copy of the License at                                    #
+#       http://www.apache.org/licenses/LICENSE-2.0                           #
+#                                                                            #
+# Unless required by applicable law or agreed to in writing, software        #
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
+# See the License for the specific language governing permissions and        #
+# limitations under the License.                                             #
+##############################################################################
+# This file defines hardware-specific settings for neutron. If you use the same
+# hardware profile as this environment, you should not need to change this file.
+# Otherwise, you should review the settings here and adjust for your hardware.
+# In particular:
+# 1. logical network interface names
+# 2. physical device mappigns
+# TODO: Should move to global layer and become tied to the hardware profile
+
+schema: armada/Chart/v1
+metadata:
+  schema: metadata/Document/v1
+  name: neutron
+  replacement: true
+  labels:
+    component: neutron
+  layeringDefinition:
+    abstract: false
+    layer: site
+    parentSelector:
+      name: neutron-global
+    actions:
+      - method: merge
+        path: .
+  storagePolicy: cleartext
+
+data:
+  values:
+    network:
+      backend:
+        - openvswitch
+      interface:
+        tunnel: br-phy
+    conf:
+      plugins:
+        ml2_conf:
+          ml2:
+            mechanism_drivers: openvswitch,l2population
+            type_drivers: flat,vlan,vxlan
+            tenant_network_types: vxlan
+          ml2_type_vlan:
+            network_vlan_ranges: "external:3002:3008"
+          ml2_type_flat:
+            flat_networks: public
+        openvswitch_agent:
+          agent:
+            tunnel_types: vxlan
+          ovs:
+            bridge_mappings: external:br-phy
+      ovs_dpdk:
+        enabled: true
+        driver: vfio-pci
+        nics:
+{% for nic in yaml.dpdk.nics %}
+          - name: {{ nic.name }}
+            pci_id: '{{ nic.pci_id }}'
+            bridge: {{ nic.bridge }}
+            migrate_ip: {{ nic.migrate_ip }}
+{% endfor %}
+        bridges:
+          - name: br-phy
+        bonds: []
+      paste:
+        app:neutronversions:
+          paste.app_factory: neutron.pecan_wsgi.app:versions_factory
+  dependencies:
+    - openstack-neutron-helm-toolkit
+---
+schema: armada/Chart/v1
+metadata:
+  schema: metadata/Document/v1
+  name: openstack-neutron-helm-toolkit
+  layeringDefinition:
+    abstract: false
+    layer: global
+  storagePolicy: cleartext
+  substitutions:
+    - src:
+        schema: pegleg/SoftwareVersions/v1
+        name: software-versions
+        path: .charts.osh.neutron-htk
+      dest:
+        path: .source
+data:
+  chart_name: openstack-neutron-helm-toolkit
+  release: openstack-neutron-helm-toolkit
+  namespace: helm-toolkit
+  values: {}
+  dependencies: []
+...