Re: [libvirt] [PATCH v2] leaseshelper: improvements to support all events

2014-07-23 Thread Peter Krempa
On 07/23/14 23:42, Nehal J Wani wrote: >> On IRC, we discussed another alternative - keep the top-level item as an >> array, and instead of adding "server-duid" as an array element, just add >> it as an optional field member of each {} ipv6 lease in the array >> (multiple copies of the string, but

Re: [libvirt] [PATCH v2] leaseshelper: improvements to support all events

2014-07-23 Thread Nehal J Wani
> On IRC, we discussed another alternative - keep the top-level item as an > array, and instead of adding "server-duid" as an array element, just add > it as an optional field member of each {} ipv6 lease in the array > (multiple copies of the string, but oh well). At least that way, you > aren't

Re: [libvirt] [PATCH v2] leaseshelper: improvements to support all events

2014-07-23 Thread Eric Blake
On 07/23/2014 02:32 PM, Eric Blake wrote: > I think the enhanced format should look like: > > { > "server-duid": "...", > "leases": [ > { > "iaid": "1221229", > "ip-address": "2001:db8:ca2:2:1::95", > "mac-address": "52:54:00:12:a2:6d", > "

Re: [libvirt] [PATCH v2] leaseshelper: improvements to support all events

2014-07-23 Thread Eric Blake
On 07/23/2014 02:32 PM, Eric Blake wrote: > > I think the enhanced format should look like: > > { > "server-duid": "...", > "leases": [ > { > "iaid": "1221229", > "ip-address": "2001:db8:ca2:2:1::95", > "mac-address": "52:54:00:12:a2:6d", >

Re: [libvirt] [PATCH v2] leaseshelper: improvements to support all events

2014-07-23 Thread Eric Blake
On 07/22/2014 09:20 AM, Peter Krempa wrote: > On 07/22/14 01:03, Nehal J Wani wrote: >> This patch enables the helper program to detect event(s) triggered when there >> is a change in lease length or expiry and client-id. This transfers complete >> control of leases database to libvirt and obsolete

Re: [libvirt] [PATCH v2] leaseshelper: improvements to support all events

2014-07-22 Thread Peter Krempa
On 07/22/14 01:03, Nehal J Wani wrote: > This patch enables the helper program to detect event(s) triggered when there > is a change in lease length or expiry and client-id. This transfers complete > control of leases database to libvirt and obsoletes use of the lease database > file (.leases). Tha

[libvirt] [PATCH v2] leaseshelper: improvements to support all events

2014-07-21 Thread Nehal J Wani
This patch enables the helper program to detect event(s) triggered when there is a change in lease length or expiry and client-id. This transfers complete control of leases database to libvirt and obsoletes use of the lease database file (.leases). That file will not be created, read, or written. T