mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 01:29:54 -06:00
Merge remote-tracking branch 'upstream/master' into Virtual-Sound-Card
This commit is contained in:
@@ -2283,6 +2283,17 @@ class Libvirt {
|
||||
return $soundcardslist;
|
||||
}
|
||||
|
||||
function domain_get_vm_pciids($domain) {
|
||||
$hostdevs=$this->domain_get_host_devices_pci($domain);
|
||||
$vmpcidevs=[];
|
||||
foreach($hostdevs as $key => $dev) {
|
||||
$vmpcidevs[$dev['id']] = [
|
||||
'vendor_id' => ltrim($dev['vendor_id'] ?? "", '0x'),
|
||||
'device_id' => ltrim($dev['product_id'] ?? "", '0x'),
|
||||
];
|
||||
}
|
||||
return $vmpcidevs;
|
||||
}
|
||||
|
||||
function get_nic_info($domain) {
|
||||
$macs = $this->get_xpath($domain, "//domain/devices/interface/mac/@address", false);
|
||||
|
||||
Reference in New Issue
Block a user