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 |
---|---|
List of SR-IOV device_spec |
|
ConfigMap file to be used in nic-partitioned deployment |
|
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 |
---|---|
Dict of device_spec Returned: success |
|
Integer for the return code Returned: always |