Hi Can you confirm that I source get an array of these when running this api call, currently I just get a return of false root at computenode:/mnt/testpool# qemu -nic model=help Supported NIC models: e1000 e1000-82544gc e1000-82545em e1000e i82550 i82551 i82557a i82557b i82557c i82558a i82558b i82559a i82559b i82559c i82559er i82562 i82801 ne2k_pci pcnet rtl8139 tulip virtio-net-pci virtio-net-pci-non-transitional virtio-net-pci-transitional vmxnet3 function domain_get_nic_models($arch = 'x86_64') { $tmp = libvirt_connect_get_nic_models($this->conn, $arch) ; return ($tmp) ? $tmp : $this->_set_last_error(); } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20221228/0ccaed24/attachment.htm>
On 12/28/22 10:09, Simon Fairweather wrote:> Hi? > > Can you confirm?that I source get an array of these when running this > api call, currently I just get a return of false >Yeah, this is because as of QEMU's commit [1] (contained in QEMU-4.1.0 release) the format in which list is reported changed. Instead of everything being on one line separated by commas, now each model is printed on individual line. And looking at a function that's related (libvirt_connect_get_soundhw_models()) I'll need to rework that too, because in QEMU-7.1 they removed -soundhw argument. Michal 1: https://gitlab.com/qemu-project/qemu/-/commit/7b71e03af98fd7b5e125d7c10f02c804fcc5e5af