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