[libvirt] [PATCH 0/4] Introduce APIs to extract DHCP leases info

Nehal J Wani nehaljw.kkd1 at gmail.com
Wed Sep 11 15:30:08 UTC 2013


This API returns the information stored in the DHCP leases file
created by dnsmasq for a given virtual network. It contacts the
bridge network driver, which parses the leases file.

It supports two methods:

1. Return info for all network interfaces connected to a given
   virtual network
2. Return information for a particular network interface in a
   given virtual network by providing its MAC Address

* The need for these APIs were result of a RFC was proposed on the list.
  Refer: http://www.redhat.com/archives/libvir-list/2013-July/msg01603.html

Nehal J Wani (4):
  net-dhcp-leases: Implement the public APIs
  net-dhcp-leases: Implement the remote protocol
  net-dhcp-leases: Private implementation inside network driver
  net-dhcp-leases: Add virsh support

 daemon/remote.c              | 128 +++++++++++++++++++++++++
 include/libvirt/libvirt.h.in |  22 +++++
 python/generator.py          |   3 +
 src/driver.h                 |  13 +++
 src/libvirt.c                | 166 ++++++++++++++++++++++++++++++++
 src/libvirt_public.syms      |   7 ++
 src/network/bridge_driver.c  | 222 +++++++++++++++++++++++++++++++++++++++++++
 src/remote/remote_driver.c   | 117 +++++++++++++++++++++++
 src/remote/remote_protocol.x |  48 +++++++++-
 src/remote_protocol-structs  |  27 ++++++
 src/rpc/gendispatch.pl       |   1 +
 tools/virsh-network.c        |  92 ++++++++++++++++++
 tools/virsh.pod              |   6 ++
 13 files changed, 851 insertions(+), 1 deletion(-)

-- 
1.7.11.7




More information about the libvir-list mailing list