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
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)
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