ia64/xen-unstable

changeset 12534:b80f00215bba

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@redhat.com>
author Ewan Mellor <ewan@xensource.com>
date Tue Nov 21 17:34:17 2006 +0000 (2006-11-21)
parents 08007423788a
children f555a90bcc37
files tools/python/xen/xend/server/SrvDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/server/SrvDomain.py	Tue Nov 21 16:14:53 2006 +0000
     1.2 +++ b/tools/python/xen/xend/server/SrvDomain.py	Tue Nov 21 17:34:17 2006 +0000
     1.3 @@ -82,6 +82,18 @@ class SrvDomain(SrvDir):
     1.4      def do_save(self, _, req):
     1.5          return self.xd.domain_save(self.dom.domid, req.args['file'][0])
     1.6  
     1.7 +    def op_dump(self, op, req):
     1.8 +        self.acceptCommand(req)
     1.9 +        return req.threadRequest(self.do_dump, op, req)
    1.10 +
    1.11 +    def do_dump(self, _, req):
    1.12 +        fn = FormFn(self.xd.domain_dump,
    1.13 +	            [['dom',         'int'],
    1.14 +		     ['file',        'str'],
    1.15 +		     ['live',        'int'],
    1.16 +		     ['crash',       'int']])
    1.17 +        return fn(req.args, {'dom': self.dom.domid})
    1.18 +
    1.19      def op_migrate(self, op, req):
    1.20          return req.threadRequest(self.do_migrate, op, req)
    1.21