From 9875e4eb181af9afa8cb28566253f5487edcc7cb Mon Sep 17 00:00:00 2001 From: Moshe Levi Date: Wed, 17 Jan 2018 07:06:09 +0200 Subject: [PATCH] Adding support for odl hw offloading in containers During deployment, deploy with -e environments/services-docker/neutron-opendaylight-hw-offload.yaml along with other env files. Change-Id: I8d93b72586f49bb85f6569a725b135846f6139a3 --- .../neutron-opendaylight-hw-offload.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 environments/services-docker/neutron-opendaylight-hw-offload.yaml diff --git a/environments/services-docker/neutron-opendaylight-hw-offload.yaml b/environments/services-docker/neutron-opendaylight-hw-offload.yaml new file mode 100644 index 0000000000..7067a51e4e --- /dev/null +++ b/environments/services-docker/neutron-opendaylight-hw-offload.yaml @@ -0,0 +1,31 @@ +# A Heat environment that can be used to deploy OpenDaylight with SRIOV +resource_registry: + OS::TripleO::Services::NeutronOvsAgent: OS::Heat::None + OS::TripleO::Services::ComputeNeutronOvsAgent: OS::Heat::None + OS::TripleO::Services::ComputeNeutronCorePlugin: OS::Heat::None + OS::TripleO::Services::NeutronCorePlugin: ../../puppet/services/neutron-plugin-ml2-odl.yaml + OS::TripleO::Services::OpenDaylightApi: ../../docker/services/opendaylight-api.yaml + OS::TripleO::Services::OpenDaylightOvs: ../../puppet/services/opendaylight-ovs.yaml + OS::TripleO::Services::NeutronSriovHostConfig: ../../puppet/services/neutron-sriov-host-config.yaml + OS::TripleO::Services::NeutronL3Agent: OS::Heat::None + +parameter_defaults: + NeutronEnableForceMetadata: true + NeutronPluginExtensions: 'port_security' + NeutronMechanismDrivers: ['opendaylight_v2'] + NeutronServicePlugins: 'odl-router_v2,trunk' + NovaSchedulerDefaultFilters: ['RetryFilter','AvailabilityZoneFilter','RamFilter','ComputeFilter','ComputeCapabilitiesFilter','ImagePropertiesFilter','ServerGroupAntiAffinityFilter','ServerGroupAffinityFilter','PciPassthroughFilter'] + NovaSchedulerAvailableFilters: ["nova.scheduler.filters.all_filters","nova.scheduler.filters.pci_passthrough_filter.PciPassthroughFilter"] + + # Kernel arguments for ComputeSriov node + ComputeSriovParameters: + KernelArgs: "intel_iommu=on iommu=pt" + OvsHwOffload: True + # Number of VFs that needs to be configured for a physical interface + #NeutronSriovNumVFs: ["ens3f0:4:switchdev"] + # Mapping of SR-IOV PF interface to neutron physical_network. + # In case of Vxlan/GRE physical_network should be null. + # In case of flat/vlan the physical_network should as configured in neutron. + #NovaPCIPassthrough: + # - devname: "ens3f0" + # physical_network: null