[libvirt] RFC: 'old' event for leaseshelper.c when lease renews
Peter Krempa
pkrempa at redhat.com
Tue Jul 1 06:45:03 UTC 2014
On 06/30/14 22:49, Nehal J Wani wrote:
>> I'd prefer (i) since that lets libvirt work properly with existing
>> dnsmasq versions which are deployed.
>>
>> Regards,
>> Daniel
>
> I cleared some more queries regarding leasesfile-ro option. Once can
> read the conversation at
> http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2014q2/008656.html.
>
> TL;DR:
> (i) We have to change the leasehelper program to honor the event
> 'init' and print leases info in dnsmasq leases format (so that dnsmasq
> knows about previous leases if it is restarted for some reason).
> (ii) Since we support DHCPv6, we will need to modify the JSON format
> to store server DUID too. Since we have one custom leases file for
> each network, I think it will suffice to store the DUID is just once
> in the JSON. Something like this:
> [
> "server-duid": "00:01:00:01:1b:40:8d:94:00:25:
> 64:8b:e4:2c"
> {
> "iaid": "1221229",
> "ip-address": "2001:db8:ca2:2:1::95",
> "mac-address": "52:54:00:12:a2:6d",
> "hostname": "Fedora20",
> "client-id": "00:04:1a:c1:d9:6b:5a:0a:e2:
> bc:f8:4b:1e:37:2e:38:22:55"
> ,
> "expiry-time": 1393244216
> },
> {
> "ip-address": "192.168.150.208",
> "mac-address": "52:54:00:11:56:b3",
> "hostname": "Wani-PC",
> "client-id": "01:52:54:00:11:56:b3",
> "expiry-time": 1393244248
> }
> ]
>
> Do we want this in 1.2.6?
It's too late for 1.2.6, the release should happen any time today.
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140701/01950208/attachment-0001.sig>
More information about the libvir-list
mailing list