1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Feature #3028: Add PCI info to im_dummy driver

This commit is contained in:
Carlos Martín 2015-08-26 11:05:15 +02:00
parent 415e0b6c96
commit a0a9504f17

View File

@ -69,6 +69,52 @@ class DummyInformationManager < OpenNebulaDriver
results << "DS_LOCATION_TOTAL_MB=20480\n"
results << "DS_LOCATION_FREE_MB=20480\n"
results << "PCI = [
ADDRESS = \"0000:02:00:0\",\n
BUS = \"02\",\n
CLASS = \"0300\",\n
CLASS_NAME = \"VGA compatible controller\",\n
DEVICE = \"0863\",\n
DEVICE_NAME = \"C79 [GeForce 9400M]\",\n
DOMAIN = \"0000\",\n
FUNCTION = \"0\",\n
SHORT_ADDRESS = \"02:00.0\",\n
SLOT = \"00\",\n
TYPE = \"10de:0863:0300\",\n
VENDOR = \"10de\",\n
VENDOR_NAME = \"NVIDIA Corporation\"\n
]\n
PCI = [
ADDRESS = \"0000:00:06:0\",\n
BUS = \"00\",\n
CLASS = \"0c03\",\n
CLASS_NAME = \"USB controller\",\n
DEVICE = \"0aa7\",\n
DEVICE_NAME = \"MCP79 OHCI USB 1.1 Controller\",\n
DOMAIN = \"0000\",\n
FUNCTION = \"0\",\n
SHORT_ADDRESS = \"00:06.0\",\n
SLOT = \"06\",\n
TYPE = \"10de:0aa7:0c03\",\n
VENDOR = \"10de\",\n
VENDOR_NAME = \"NVIDIA Corporation\"\n
]\n
PCI = [
ADDRESS = \"0000:00:06:1\",\n
BUS = \"00\",\n
CLASS = \"0c03\",\n
CLASS_NAME = \"USB controller\",\n
DEVICE = \"0aa9\",\n
DEVICE_NAME = \"MCP79 EHCI USB 2.0 Controller\",\n
DOMAIN = \"0000\",\n
FUNCTION = \"1\",\n
SHORT_ADDRESS = \"00:06.1\",\n
SLOT = \"06\",\n
TYPE = \"10de:0aa9:0c03\",\n
VENDOR = \"10de\",\n
VENDOR_NAME = \"NVIDIA Corporation\"\n
]\n"
results = Base64::encode64(results).strip.delete("\n")
send_message("MONITOR", RESULT[:success], number, results)