ia64/xen-unstable

changeset 5239:e2a8619ab691

bitkeeper revision 1.1617 (429c8920BjgVBzWyVe6fs4GTiKD5Yw)

XendDomainInfo.py, XendDomain.py:
tmp_restore_create_domain is vm_restore now.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue May 31 15:56:16 2005 +0000 (2005-05-31)
parents 519301e369cc
children d1bcd03773bf
files tools/python/xen/xend/XendDomain.py tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Tue May 31 15:22:09 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Tue May 31 15:56:16 2005 +0000
     1.3 @@ -312,8 +312,7 @@ class XendDomain:
     1.4          @param vmconfig: vm configuration
     1.5          """
     1.6          config = sxp.child_value(vmconfig, 'config')
     1.7 -        dominfo = XendDomainInfo.tmp_restore_create_domain()
     1.8 -        dominfo.dom_construct(dominfo.dom, config)
     1.9 +        dominfo = XendDomainInfo.vm_restore(config)
    1.10          self._add_domain(dominfo)
    1.11          return dominfo
    1.12      
     2.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue May 31 15:22:09 2005 +0000
     2.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue May 31 15:56:16 2005 +0000
     2.3 @@ -153,11 +153,14 @@ def vm_create(config):
     2.4      vm.construct(config)
     2.5      return vm
     2.6  
     2.7 -def tmp_restore_create_domain():
     2.8 -    # dom input parameter is ignored
     2.9 +def vm_restore(config):
    2.10 +    """Create a domain and a VM object to do a restore.
    2.11 +
    2.12 +    @param config:    domain configuration
    2.13 +    """
    2.14      vm = XendDomainInfo()
    2.15      dom = xc.domain_create()
    2.16 -    vm.setdom(dom)
    2.17 +    vm.dom_construct(dom, config)
    2.18      return vm
    2.19  
    2.20  def vm_recreate(savedinfo, info):