diff options
author | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-05-31 15:20:43 +0000 |
---|---|---|
committer | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-05-31 15:20:43 +0000 |
commit | 59f83bdc8f5ba87cb8bd1235f42bd27c1fff39c0 (patch) | |
tree | 09b7e46e9f29592e3b41e6e4bcd63ba339027405 /tools | |
parent | 6a89fed7f67ed9a854a26c8d77d651e0fc26b853 (diff) | |
download | xen-59f83bdc8f5ba87cb8bd1235f42bd27c1fff39c0.tar.gz xen-59f83bdc8f5ba87cb8bd1235f42bd27c1fff39c0.tar.bz2 xen-59f83bdc8f5ba87cb8bd1235f42bd27c1fff39c0.zip |
bitkeeper revision 1.1615 (429c80cbvtnzneyg7GyZAmZlQNm-Yg)
XendDomainInfo.py:
g/c vm_restore: no longer used.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/xend/XendDomainInfo.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 2d9b52e67c..df02125d5c 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -192,28 +192,6 @@ def vm_recreate(savedinfo, info): vm.savedinfo = None return vm -def vm_restore(src, progress=False): - """Restore a VM from a disk image. - - src saved state to restore - progress progress reporting flag - raises VmError for invalid configuration - """ - vm = XendDomainInfo() - ostype = "linux" #todo Set from somewhere (store in the src?). - restorefn = getattr(xc, "%s_restore" % ostype) - d = restorefn(state_file=src, progress=progress) - dom = int(d['dom']) - if dom < 0: - raise VmError('restore failed') - try: - vmconfig = sxp.from_string(d['vmconfig']) - config = sxp.child_value(vmconfig, 'config') - except Exception, ex: - raise VmError('config error: ' + str(ex)) - vm.dom_construct(dom, config) - return vm - def dom_get(dom): """Get info from xen for an existing domain. |