B #5518 GOCA PCIDevices support

Signed-off-by: jungle <junglecatsw@gmail.com>
This commit is contained in:
Sean authored and Ruben S. Montero committed 2021-09-06 11:52:34 +02:00
1 parent c2e58a8dc4
commit eb49ad2e6f
1 file changed
+19 -1
+19 -1
View File
@@ -65,7 +65,7 @@ type Share struct {
RunningVMs int `xml:"RUNNING_VMS,omitempty"`
Datastores []Datastores `xml:"DATASTORES>DS,omitempty"`
PCIDevices interface{} `xml:"PCI_DEVICES>PCI,omitempty"`
PCIDevices []PCIDevices `xml:"PCI_DEVICES>PCI,omitempty"`
}
type Datastores struct {
@@ -74,3 +74,21 @@ type Datastores struct {
FreeMB int `xml:"FREE_MB,omitempty"`
TotalMB int `xml:"TOTAL_MB,omitempty"`
}
type PCIDevices struct {
Address string `xml:"ADDRESS,omitempty"`
Bus string `xml:"BUS,omitempty"`
Class string `xml:"CLASS,omitempty"`
ClassName string `xml:"CLASS_NAME,omitempty"`
Device string `xml:"DEVICE,omitempty"`
DeviceName string `xml:"DEVICE_NAME,omitempty"`
Domain string `xml:"DOMAIN,omitempty"`
Function string `xml:"FUNCTION,omitempty"`
NumaNode string `xml:"NUMA_NODE,omitempty"`
ShortAddress string `xml:"SHORT_ADDRESS,omitempty"`
Slot string `xml:"SLOT,omitempty"`
Type string `xml:"TYPE,omitempty"`
Vendor string `xml:"VENDOR,omitempty"`
VendorName string `xml:"VENDOR_NAME,omitempty"`
VMID int `xml:"VMID,omitempty"`
}