From a4079e7ec63c7ecdc5fcd23b33831c58e3679d46 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Wed, 19 May 2010 09:02:30 -0400 Subject: Fix up the python bindings for snapshotting. This involved a few fixes. To start with, an virDomainSnapshot object is really tied to a domain, not a connection, so we have to generate a slightly different object so that we can get at self._dom for the object. Next, we had to "dummy" up an override piece of XML with a bogus argument that the function doesn't actually take. That's so that the generator places virDomainRevertToSnapshot underneath the correct class (namely, the virDomain class). Finally, we had to hand-implement the virDomainRevertToSnapshot implementation, ignoring the bogus pointer we are being passed. With all of this in place, I was able to successfully take a snapshot and revert to it using only the Python bindings. Signed-off-by: Chris Lalancette --- libvirt-override-api.xml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libvirt-override-api.xml') diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml index 9ba8e4e..be28b40 100644 --- a/libvirt-override-api.xml +++ b/libvirt-override-api.xml @@ -277,5 +277,12 @@ + + revert the domain to the given snapshot + + + + + -- cgit