From f5c5e7e77bb962bcacd849c52891d694002d03c5 Mon Sep 17 00:00:00 2001 From: Alex Jia Date: Tue, 14 Feb 2012 10:46:23 +0800 Subject: python: Expose virDomain{G,S}etInterfaceParameters APIs in python binding 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: #!/usr/bin/env python 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 --- libvirt-override-api.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'libvirt-override-api.xml') diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml index 563dd46..ab8f33a 100644 --- a/libvirt-override-api.xml +++ b/libvirt-override-api.xml @@ -261,6 +261,22 @@ + + Change the bandwidth tunables for a interface device + + + + + + + + Get the bandwidth tunables for a interface device + + + + + + list the storage pools, stores the pointers to the names in @names -- cgit