4d8c9a9040
All pci passthrough code is merged into nova, but the APIs are not supported. This patch provides a resource: endpoint to show PCI information. This is a part of PCI APIs, for more information see the blueprint. Partially implement blueprint pci-api-support Change-Id: I05c502cb7564b8b71f12d8f06249124b3d2b370f
37 lines
1.0 KiB
JSON
37 lines
1.0 KiB
JSON
{
|
|
"pci_devices": [
|
|
{
|
|
"address": "0000:04:10.0",
|
|
"compute_node_id": 1,
|
|
"dev_id": "pci_0000_04_10_0",
|
|
"dev_type": "type-VF",
|
|
"extra_info": {
|
|
"key1": "value1",
|
|
"key2": "value2"
|
|
},
|
|
"id": 1,
|
|
"server_uuid": "69ba1044-0766-4ec0-b60d-09595de034a1",
|
|
"label": "label_8086_1520",
|
|
"product_id": "1520",
|
|
"status": "available",
|
|
"vendor_id": "8086"
|
|
},
|
|
{
|
|
"address": "0000:04:10.1",
|
|
"compute_node_id": 1,
|
|
"dev_id": "pci_0000_04_10_1",
|
|
"dev_type": "type-VF",
|
|
"extra_info": {
|
|
"key3": "value3",
|
|
"key4": "value4"
|
|
},
|
|
"id": 2,
|
|
"server_uuid": "d5b446a6-a1b4-4d01-b4f0-eac37b3a62fc",
|
|
"label": "label_8086_1520",
|
|
"product_id": "1520",
|
|
"status": "available",
|
|
"vendor_id": "8086"
|
|
}
|
|
]
|
|
}
|