Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-22 Thread Michal Novotny
[snip] I'm not entirely convinced was want to have this in our APIs, since the arp probing is not really a reliable basis for reporting guest IP details. In the near future there will be guest agents for QEMU which can report this information reliably and I think they're a better bet for any

Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-15 Thread Michal Novotny
On 07/14/2011 05:42 PM, Matthias Bolte wrote: 2011/7/14 Michal Novotny minov...@redhat.com: Hi guys, some time ago I've been investigating the options to get the guest's IP address information without having to connect to guest's VNC window or console. It was for one project I've been working

Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-15 Thread Michal Novotny
On 07/15/2011 10:04 AM, Michal Novotny wrote: On 07/14/2011 05:42 PM, Matthias Bolte wrote: 2011/7/14 Michal Novotny minov...@redhat.com: Hi guys, some time ago I've been investigating the options to get the guest's IP address information without having to connect to guest's VNC window or

Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-15 Thread Matthias Bolte
2011/7/15 Michal Novotny minov...@redhat.com: On 07/14/2011 05:42 PM, Matthias Bolte wrote: 2011/7/14 Michal Novotny minov...@redhat.com: Hi guys, some time ago I've been investigating the options to get the guest's IP address information without having to connect to guest's VNC window or

Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-15 Thread Michal Novotny
On 07/15/2011 10:28 AM, Matthias Bolte wrote: 2011/7/15 Michal Novotny minov...@redhat.com: On 07/14/2011 05:42 PM, Matthias Bolte wrote: 2011/7/14 Michal Novotny minov...@redhat.com: Hi guys, some time ago I've been investigating the options to get the guest's IP address information without

Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-15 Thread Matthias Bolte
2011/7/15 Michal Novotny minov...@redhat.com: On 07/15/2011 10:28 AM, Matthias Bolte wrote: 2011/7/15 Michal Novotny minov...@redhat.com: On 07/14/2011 05:42 PM, Matthias Bolte wrote: 2011/7/14 Michal Novotny minov...@redhat.com: Hi guys, some time ago I've been investigating the options to

Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-15 Thread Michal Novotny
[snip] Wait a minute there please. The MAC address should be unique in the system so user should be using just one IP address per one MAC address. Since MAC address should be unique in the system then the IP address assigned to this MAC address should be just one, shouldn't it ? You can

Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-15 Thread Daniel P. Berrange
On Thu, Jul 14, 2011 at 05:14:57PM +0200, Michal Novotny wrote: Hi guys, some time ago I've been investigating the options to get the guest's IP address information without having to connect to guest's VNC window or console. It was for one project I've been working on and I found that the

Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-15 Thread Michal Novotny
[snip] ipv4s = virDomainGetIPAddress(domain, macaddr, count, VIR_DOMAIN_ADDRESS_IPV4); ipv6s = virDomainGetIPAddress(domain, macaddr, count, VIR_DOMAIN_ADDRESS_IPV6); This are the simple cases where the caller explicitly requests only one version and knows the version of the returned IP

Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-15 Thread Michal Novotny
On 07/15/2011 12:09 PM, Daniel P. Berrange wrote: On Thu, Jul 14, 2011 at 05:14:57PM +0200, Michal Novotny wrote: Hi guys, some time ago I've been investigating the options to get the guest's IP address information without having to connect to guest's VNC window or console. It was for one

Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-14 Thread Matthias Bolte
2011/7/14 Michal Novotny minov...@redhat.com: Hi guys, some time ago I've been investigating the options to get the guest's IP address information without having to connect to guest's VNC window or console. It was for one project I've been working on and I found that the solution lies in the

Re: [libvirt] RFC: Implement virDomainGetIPAddress()

2011-07-14 Thread Matthias Bolte
2011/7/14 Michal Novotny minov...@redhat.com: Hi guys, some time ago I've been investigating the options to get the guest's IP address information without having to connect to guest's VNC window or console. It was for one project I've been working on and I found that the solution lies in the