|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] XendDomainInfo.py, XendDomain.py:
ChangeSet 1.1617, 2005/05/31 16:56:16+01:00, cl349@xxxxxxxxxxxxxxxxxxxx
XendDomainInfo.py, XendDomain.py:
tmp_restore_create_domain is vm_restore now.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
XendDomain.py | 3 +--
XendDomainInfo.py | 9 ++++++---
2 files changed, 7 insertions(+), 5 deletions(-)
diff -Nru a/tools/python/xen/xend/XendDomain.py
b/tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py 2005-05-31 14:03:30 -04:00
+++ b/tools/python/xen/xend/XendDomain.py 2005-05-31 14:03:30 -04:00
@@ -312,8 +312,7 @@
@param vmconfig: vm configuration
"""
config = sxp.child_value(vmconfig, 'config')
- dominfo = XendDomainInfo.tmp_restore_create_domain()
- dominfo.dom_construct(dominfo.dom, config)
+ dominfo = XendDomainInfo.vm_restore(config)
self._add_domain(dominfo)
return dominfo
diff -Nru a/tools/python/xen/xend/XendDomainInfo.py
b/tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py 2005-05-31 14:03:30 -04:00
+++ b/tools/python/xen/xend/XendDomainInfo.py 2005-05-31 14:03:30 -04:00
@@ -153,11 +153,14 @@
vm.construct(config)
return vm
-def tmp_restore_create_domain():
- # dom input parameter is ignored
+def vm_restore(config):
+ """Create a domain and a VM object to do a restore.
+
+ @param config: domain configuration
+ """
vm = XendDomainInfo()
dom = xc.domain_create()
- vm.setdom(dom)
+ vm.dom_construct(dom, config)
return vm
def vm_recreate(savedinfo, info):
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
|
|
|
|