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

Eric Blake eblake at redhat.com
Wed Oct 2 12:35:11 UTC 2013


On 10/02/2013 04:46 AM, Daniel P. Berrange wrote:
> Actually, I see that we already expose the IAID concept to the user
> in the XML for networks
> 
>         <ip family="ipv6" address="2001:db8:ca2:2::1" prefix="64" >
>           <dhcp>
>             <host name="paul"   ip="2001:db8:ca2:2:3::1" />
>             <host id="0:1:0:1:18:aa:62:fe:0:16:3e:44:55:66"    ip="2001:db8:ca2:2:3::2" />


> The 'id' value is mapping to the IAID. So it is sensible to expose this
> field in the virNetworkDHCPLease struct, but as a separate field, not
> as a union.

That, and IAID is NOT an 'unsigned long long int', but an arbitrary
string, and you should not be trying to parse it into a single integer.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131002/541e3b04/attachment-0001.sig>


More information about the libvir-list mailing list