Re: [libvirt-php] libvirt_domain_interface_addresses() only returns only on IP address for NICs with multiple IPs

2020-04-16 Thread Michal Privoznik
On 4/16/20 9:08 AM, Fernando Casas Schössow wrote: Forgot to add the output of the equivalent virsh command for the same VM: Name MAC address Protocol Address --- lo 00:00:00:00:00:00 ipv4 127.0.0.1/8 lo

[libvirt-php] libvirt_domain_interface_addresses() only returns only on IP address for NICs with multiple IPs

2020-04-16 Thread Fernando Casas Schössow
Hi, While using the function libvirt_domain_interface_addresses() with qemu guest agent as the source, for interfaces with more than one IP address, the function will only return one IP. Example code: $netdetails = libvirt_domain_interface_addresses($vmres, 2); foreach ($netdetails as $nic)

Re: [libvirt-php] libvirt_domain_interface_addresses() only returns only on IP address for NICs with multiple IPs

2020-04-16 Thread Fernando Casas Schössow
Forgot to add the output of the equivalent virsh command for the same VM: Name MAC address Protocol Address --- lo 00:00:00:00:00:00 ipv4 127.0.0.1/8 lo 00:00:00:00:00:00 ipv6 ::1/128 eth0 52:54:00:12:b9:22 ipv4