diff options
author | Nehal J Wani <nehaljw.kkd1@gmail.com> | 2014-06-26 04:15:30 +0530 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2014-06-27 10:39:19 +0200 |
commit | bdb64c7641ba158e5bf0344d2386959ff6b21fc4 (patch) | |
tree | 28e8895b2111066462634eaa92e385115ff99cca /libvirt-override-api.xml | |
parent | 724df7f11b515507dce0f91dfa5b2e37db21d3c0 (diff) | |
download | libvirt-python-bdb64c7641ba158e5bf0344d2386959ff6b21fc4.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 'libvirt-override-api.xml')
-rw-r--r-- | libvirt-override-api.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml index bbf0ab1..09bbbf8 100644 --- a/libvirt-override-api.xml +++ b/libvirt-override-api.xml @@ -633,5 +633,12 @@ <arg name='flags' type='int' info='unused, pass 0'/> <return type='char *' info='the list available memory in the cells'/> </function> + <function name="virNetworkGetDHCPLeases" file='python'> + <info>Returns a list of dhcp leases for interfaces connected to the given virtual network</info> + <arg name='network' type='virNetworkPtr' info='a network object'/> + <arg name='mac' type='const char *' info='optional mac address'/> + <arg name='flags' type='unsigned int' info='unused, pass 0'/> + <return type='char *' info="list of leases"/> + </function> </symbols> </api> |