]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Support reporting live interface IP/netmask
authorLaine Stump <laine@laine.org>
Wed, 28 Oct 2009 09:40:54 +0000 (10:40 +0100)
committerDaniel Veillard <veillard@redhat.com>
Tue, 3 Nov 2009 20:04:56 +0000 (21:04 +0100)
commit753c6c9c75c1eeb70a034db4100d93e669203128
treead0d1f79936732fb772582a543d1d9c094a7a7cb
parentef591ef7b98ac91e5396d1c5c103b47ef099faa0
Support reporting live interface IP/netmask

This patch adds the flag VIR_INTERFACE_XML_INACTIVE to
virInterfaceGetXMLDesc's flags. When it is*not* set (the default), the
live interface info will be returned in the XML (in particular, the IP
address(es) and netmask(s) will be retrieved by querying the interface
directly, rather than  reporting what's in the config file). The
backend of this is in netcf's ncf_if_xml_state() function.

* configure.in libvirt.spec.in: requires netcf >= 0.1.3
* include/libvirt/libvirt.h.in: adds flag VIR_INTERFACE_XML_INACTIVE
* src/conf/interface_conf.c src/interface/netcf_driver.c src/libvirt.c:
  update the parsing and backend routines accordingly
* tools/virsh.c: change interface edit to inactive definition and
  adds the inactive flag for interface dump
configure.in
include/libvirt/libvirt.h.in
libvirt.spec.in
src/conf/interface_conf.c
src/interface/netcf_driver.c
src/libvirt.c
tools/virsh.c