# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID b80f00215bbaf2050765e557f1a017a71e1e8529
# Parent 08007423788ab86753515756b8142b075162c336
The legacy HTTP entry point for Xend remote access didn't hook the
dump operation for a domain, this patch adds it.
Signed-off-by: Daniel Veillard <veillard@xxxxxxxxxx>
---
tools/python/xen/xend/server/SrvDomain.py | 12 ++++++++++++
1 files changed, 12 insertions(+)
diff -r 08007423788a -r b80f00215bba tools/python/xen/xend/server/SrvDomain.py
--- a/tools/python/xen/xend/server/SrvDomain.py Tue Nov 21 16:14:53 2006 +0000
+++ b/tools/python/xen/xend/server/SrvDomain.py Tue Nov 21 17:34:17 2006 +0000
@@ -81,6 +81,18 @@ class SrvDomain(SrvDir):
def do_save(self, _, req):
return self.xd.domain_save(self.dom.domid, req.args['file'][0])
+
+ def op_dump(self, op, req):
+ self.acceptCommand(req)
+ return req.threadRequest(self.do_dump, op, req)
+
+ def do_dump(self, _, req):
+ fn = FormFn(self.xd.domain_dump,
+ [['dom', 'int'],
+ ['file', 'str'],
+ ['live', 'int'],
+ ['crash', 'int']])
+ return fn(req.args, {'dom': self.dom.domid})
def op_migrate(self, op, req):
return req.threadRequest(self.do_migrate, op, req)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|