4
1
Michal Prívozník's profile photoRaghavendra Talur's profile photo
4 comments
 
Interesting. although you know that libvirt already has an API for querying domain addresses, right? virsh domifaddr or virDomainInterfaceAddresses(). Moreover, you can choose the source for the addresses - and one of them is dnsmasq (the other being guest agent).
 
+Michal Prívozník Thanks!
 I did not find domifaddr on my fedora 22 with libvirt version 1.2.13.1-3. However, I could execute net-dhcp-leases instead and found that it lists only dhcp IPs. Is it possible to get all IPs including static ones?
 
The API was introduced in 1.2.14. And for the static IPs it should be possible via the new API. Or even via net-dhcp-leaases. If it's not please open a bug.
Add a comment...