summaryrefslogtreecommitdiffstats
path: root/typewrappers.c
diff options
context:
space:
mode:
authorAlex Jia <ajia@redhat.com>2012-02-14 10:46:23 +0800
committerDaniel Veillard <veillard@redhat.com>2012-02-21 16:32:33 +0800
commit988a7213942b521a8db7aed6233190f401242d8a (patch)
tree765009d6e76b9ee7c3354e2e6509925ca33141f5 /typewrappers.c
parente8fe5e59e246fb1ed396cc737657ee4e9d752ef3 (diff)
downloadlibvirt-python-v6-libvirt-0.9.10-2.el6.tar.gz
libvirt-python-v6-libvirt-0.9.10-2.el6.tar.xz
libvirt-python-v6-libvirt-0.9.10-2.el6.zip
python: Expose virDomain{G,S}etInterfaceParameters APIs in python bindinglibvirt-0.9.10-6.el6libvirt-0.9.10-5.el6libvirt-0.9.10-4.el6libvirt-0.9.10-3.el6libvirt-0.9.10-2.el6
The v4 patch corrects indentation issues. The v3 patch follows latest python binding codes and change 'size' type from int to Py_ssize_t. An simple example to show how to use it: import libvirt conn = libvirt.open(None) dom = conn.lookupByName('foo') print dom.interfaceParameters('vnet0', 0) params = {'outbound.peak': 10, 'inbound.peak': 10, 'inbound.burst': 20, 'inbound.average': 20, 'outbound.average': 30, 'outbound.burst': 30} print dom.setInterfaceParameters('vnet0', params, 0) print dom.interfaceParameters('vnet0', 0) Signed-off-by: Alex Jia <ajia@redhat.com> RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=770971 cherry-pick from 8b29c4598609d9b22a39e6f6bf3bf7afe8303faa
Diffstat (limited to 'typewrappers.c')
0 files changed, 0 insertions, 0 deletions