osp.edpm.edpm_derive_pci_passthrough_devicespec module – Derive list of pci device_spec for sriov nic-partition

New in osp.edpm 1.0

Synopsis

  • This module generates the pci device_spec addr list for nova configmap, when sriov nic partitioning is configured in EDPM nodes. See openstack user guide for details of PCI passthrough formats.

Parameters

Parameter

Comments

sriov_device_spec_map

list / elements=dictionary / required

List of SR-IOV device_spec

sriov_device_spec_out_file

string / required

ConfigMap file to be used in nic-partitioned deployment

sriov_phydev_map

string

Comma seperated SR-IOV <-> phydev mappings

Default: ""

Examples

- name: Create pci device_spec from defaults
  edpm_derive_pci_passthrough_devicespec:
    sriov_device_spec_map:
      - "address" : "0000:06:00.2"
        "truested" : "true"
    sriov_device_spec_out_file: 20-sriov-nova.conf
    sriov_phydev_map: 'sriov1:ens2f0np0,sriov2:ens2f1np1'

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

device_spec

dictionary

Dict of device_spec

Returned: success

rc

integer

Integer for the return code

Returned: always

Authors

  • OpenStack EDPM Contributors