[libvirt] [PATCHv5 1/4] net-dhcp-leases: Implement the public APIs

Nehal J Wani nehaljw.kkd1 at gmail.com
Mon Nov 25 21:12:12 UTC 2013


On Tue, Nov 26, 2013 at 2:35 AM, Nehal J Wani <nehaljw.kkd1 at gmail.com> wrote:
> Introduce 3 new APIs, virNetworkGetDHCPLeases, virNetworkGetDHCPLeasesForMAC
> and virNetworkDHCPLeaseFree.
>
> * virNetworkGetDHCPLeases: returns the dhcp leases information for a given
>      virtual network.
>
>   For DHCPv4, the information returned:
>   - Network Interface Name
>   - Expiry Time
>   - MAC address (can be NULL, only in rare cases)
>   - IAID (NULL)
>   - IPv4 address (with type and prefix)
>   - Hostname (can be NULL)
>   - Client ID (can be NULL)
>
>   For DHCPv6, the information returned:
>   - Network Interface Name
>   - Expiry Time
>   - MAC address (can be NULL, only in rare cases)

Maybe worth adding:
MAC address in case of DHCPv6 will work only if the version of dnsmasq
includes the change introduced by v2.67test15
(http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=89500e31f199e9ae1eadc86213b911ff44d30d6f).
Which means, the version should be greater than or equal to v2.67
(available in Fedora 20 and not in 19 or 18)

>   - IAID (can be NULL, only in rare cases)
>   - IPv6 address (with type and prefix)
>   - Hostname (can be NULL)
>   - Client DUID
>




More information about the libvir-list mailing list