# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1255678354 -3600
# Node ID 1ab8978d687ffdcfe99078711c2403265a2499b6
# Parent a20335046ab8ec2c0fbda50d6724e27f18e89dc4
xm,xend: A few fixes for changeset 20314
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
tools/python/xen/xend/XendAPI.py | 3 ++-
tools/python/xen/xend/server/SrvDomain.py | 3 ++-
tools/python/xen/xm/migrate.py | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff -r a20335046ab8 -r 1ab8978d687f tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py Fri Oct 16 08:31:39 2009 +0100
+++ b/tools/python/xen/xend/XendAPI.py Fri Oct 16 08:32:34 2009 +0100
@@ -1902,9 +1902,10 @@ class XendAPI(object):
port = other_config.get("port", 0)
node = other_config.get("node", -1)
ssl = other_config.get("ssl", None)
+ chs = other_config.get("change_home_server", False)
xendom.domain_migrate(xeninfo.getDomid(), destination_url,
- bool(live), port, node, ssl)
+ bool(live), port, node, ssl, bool(chs))
return xen_api_success_void()
def VM_save(self, _, vm_ref, dest, checkpoint):
diff -r a20335046ab8 -r 1ab8978d687f tools/python/xen/xend/server/SrvDomain.py
--- a/tools/python/xen/xend/server/SrvDomain.py Fri Oct 16 08:31:39 2009 +0100
+++ b/tools/python/xen/xend/server/SrvDomain.py Fri Oct 16 08:32:34 2009 +0100
@@ -118,7 +118,8 @@ class SrvDomain(SrvDir):
['live', 'int'],
['port', 'int'],
['node', 'int'],
- ['ssl', 'int']])
+ ['ssl', 'int'],
+ ['change_home_server', 'bool']])
return fn(req.args, {'dom': self.dom.domid})
def op_pincpu(self, _, req):
diff -r a20335046ab8 -r 1ab8978d687f tools/python/xen/xm/migrate.py
--- a/tools/python/xen/xm/migrate.py Fri Oct 16 08:31:39 2009 +0100
+++ b/tools/python/xen/xm/migrate.py Fri Oct 16 08:32:34 2009 +0100
@@ -74,7 +74,8 @@ def main(argv):
other_config = {
"port": opts.vals.port,
"node": opts.vals.node,
- "ssl": opts.vals.ssl
+ "ssl": opts.vals.ssl,
+ "change_home_server": opts.vals.change_home_server
}
server.xenapi.VM.migrate(vm_ref, dst, bool(opts.vals.live),
other_config)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|