Re: [python PATCHv2] Implement new virNetworkGetDHCPLeases API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 27, 2014 at 10:42:33AM +0200, Peter Krempa wrote:
> From: Nehal J Wani <nehaljw.kkd1@xxxxxxxxx>
> 
> This API returns a list of DHCP leases for all network interfaces
> connected to the given virtual network or limited output just for one
> interface if mac is specified.
> 
> Example Output:
> [{'iface': 'virbr3', 'ipaddr': '192.168.150.181', 'hostname': 'ubuntu14',
>     'expirytime': 1403737495L, 'prefix': 24, 'clientid': None,
>     'mac': '52:54:00:e8:73:eb', 'iaid': None, 'type': 0},
>  {'iface': 'virbr3', 'ipaddr': '2001:db8:ca2:2:1::bd', 'hostname': 'fedora20-test',
>     'expirytime': 1403738587L, 'prefix': 64, 'clientid': '00:04:b1:d8:86:42:e1:6a:aa:cf:d5:86:94:23:6f:94:04:cd',
>     'mac': '52:54:00:5b:40:98', 'iaid': '5980312', 'type': 1}]
> 
> Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
> ---
>  examples/README          |  1 +
>  examples/dhcpleases.py   | 53 +++++++++++++++++++++++++++++
>  generator.py             |  4 +++
>  libvirt-override-api.xml |  7 ++++
>  libvirt-override.c       | 88 ++++++++++++++++++++++++++++++++++++++++++++++++
>  sanitytest.py            |  6 ++++
>  6 files changed, 159 insertions(+)
>  create mode 100755 examples/dhcpleases.py

ACK looks like a reasonable mapping to python.


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]