summaryrefslogtreecommitdiff
path: root/examples/README
diff options
context:
space:
mode:
authorNehal J Wani <nehaljw.kkd1@gmail.com>2014-06-26 04:15:30 +0530
committerPeter Krempa <pkrempa@redhat.com>2014-06-27 10:39:19 +0200
commitbdb64c7641ba158e5bf0344d2386959ff6b21fc4 (patch)
tree28e8895b2111066462634eaa92e385115ff99cca /examples/README
parent724df7f11b515507dce0f91dfa5b2e37db21d3c0 (diff)
downloadlibvirt-python-1.2.6.tar.gz
Implement new virNetworkGetDHCPLeases APIv1.2.6-rc2v1.2.6
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@redhat.com>
Diffstat (limited to 'examples/README')
-rw-r--r--examples/README1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/README b/examples/README
index f4db76c..5b5d405 100644
--- a/examples/README
+++ b/examples/README
@@ -10,6 +10,7 @@ domsave.py - save all running domU's into a directory
domrestore.py - restore domU's from their saved files in a directory
esxlist.py - list active domains of an VMware ESX host and print some info.
also demonstrates how to use the libvirt.openAuth() method
+dhcpleases.py - list dhcp leases for a given virtual network
The XML files in this directory are examples of the XML format that libvirt
expects, and will have to be adapted for your setup. They are only needed