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

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

 



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

v2
* Since DHCPv6 is supposed to be suported in future, virNetworkGetDHCPLeasesForMAC
  changed, prefix and virIPAddrType added in virNetworkDHCPLeases struct.

v1
* Refer: https://www.redhat.com/archives/libvir-list/2013-September/msg00620.html

* 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              | 133 +++++++++++++++++++++++++++++
 include/libvirt/libvirt.h.in |  33 ++++++++
 python/generator.py          |   3 +
 src/driver.h                 |  13 +++
 src/libvirt.c                | 173 ++++++++++++++++++++++++++++++++++++++
 src/libvirt_private.syms     |   1 +
 src/libvirt_public.syms      |   7 ++
 src/network/bridge_driver.c  | 193 +++++++++++++++++++++++++++++++++++++++++++
 src/remote/remote_driver.c   | 150 +++++++++++++++++++++++++++++++++
 src/remote/remote_protocol.x |  50 ++++++++++-
 src/remote_protocol-structs  |  32 +++++++
 src/rpc/gendispatch.pl       |   1 +
 tools/virsh-network.c        | 101 ++++++++++++++++++++++
 tools/virsh.pod              |   6 ++
 14 files changed, 895 insertions(+), 1 deletion(-)

-- 
1.7.11.7

--
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]