[libvirt] [PATCHv5 1/5] domifaddr: Implement the public APIs

Daniel P. Berrange berrange at redhat.com
Mon Sep 2 11:39:14 UTC 2013


On Sun, Sep 01, 2013 at 07:13:31PM +0530, Nehal J Wani wrote:
> Define a new API virDomainInterfaceAddresses, which returns
> the address information of a running domain's interfaces(s).
> If no interface name is specified, it returns the information
> of all interfaces, otherwise it only returns the information
> of the specificed interface. The address information includes
> the MAC and IP addresses.
> 
> Define helper function virDomainInterfaceFree, which allows
> the upper layer application to free the domain interface object
> conveniently.
> 
> The API is going to provide multiple methods by flags, e.g.
> 
>   * Query guest agent
>   * Parse lease file of dnsmasq
>   * DHCP snooping
> 
> But at this stage, it will only work with guest agent, and flags
> won't be supported.
> 
> include/libvirt/libvirt.h.in:
>   * Define virDomainInterfaceAddresses, virDomainInterfaceFree
>   * Define structs virDomainInterface, virDomainIPAddress
> 
> python/generator.py:
>   * Skip the auto-generation for virDomainInterfaceAddresses
>     and virDomainInterfaceFree
> 
> src/driver.h:
>   * Define domainInterfaceAddresses
> 
> src/libvirt.c:
>   * Implement virDomainInterfaceAddresses
>   * Implement virDomainInterfaceFree
> 
> src/libvirt_public.syms:
>   * Export the new symbols
> 
> ---
>  include/libvirt/libvirt.h.in |  32 ++++++++++++
>  python/generator.py          |   3 ++
>  src/driver.h                 |   6 +++
>  src/libvirt.c                | 115 +++++++++++++++++++++++++++++++++++++++++++
>  src/libvirt_public.syms      |   6 +++
>  5 files changed, 162 insertions(+)

ACK

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




More information about the libvir-list mailing list