diff options
author | emellor@ewan <emellor@ewan> | 2005-09-28 16:59:13 +0100 |
---|---|---|
committer | emellor@ewan <emellor@ewan> | 2005-09-28 16:59:13 +0100 |
commit | 1106624d57d1f34ad74fa140b2d0b08347b3a496 (patch) | |
tree | 667185f8f5fcf1a6493895e86db793e65b1033e1 /tools | |
parent | f955af1faa8a406ea3fcc7c9a867bf972c001e44 (diff) | |
download | xen-1106624d57d1f34ad74fa140b2d0b08347b3a496.tar.gz xen-1106624d57d1f34ad74fa140b2d0b08347b3a496.tar.bz2 xen-1106624d57d1f34ad74fa140b2d0b08347b3a496.zip |
Change device IDs to be integers, as required now by DevController. Remove
unused op_device. Remove broken code to show the domain configuration using
the HTTP server.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/xend/server/SrvDomain.py | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/tools/python/xen/xend/server/SrvDomain.py b/tools/python/xen/xend/server/SrvDomain.py index 7e3a86f79b..896f5b4003 100644 --- a/tools/python/xen/xend/server/SrvDomain.py +++ b/tools/python/xen/xend/server/SrvDomain.py @@ -150,17 +150,6 @@ class SrvDomain(SrvDir): val = fn(req.args, {'dom': self.dom.domid}) return val - def op_device(self, op, req): - fn = FormFn(self.xd.domain_devtype_get, - [['dom', 'int'], - ['type', 'str'], - ['idx', 'int']]) - val = fn(req.args, {'dom': self.dom.domid}) - if val: - return val.sxpr() - else: - raise XendError("invalid device") - def op_device_create(self, op, req): fn = FormFn(self.xd.domain_device_create, [['dom', 'int'], @@ -172,7 +161,7 @@ class SrvDomain(SrvDir): fn = FormFn(self.xd.domain_device_refresh, [['dom', 'int'], ['type', 'str'], - ['idx', 'str']]) + ['idx', 'int']]) val = fn(req.args, {'dom': self.dom.domid}) return val @@ -180,7 +169,7 @@ class SrvDomain(SrvDir): fn = FormFn(self.xd.domain_device_destroy, [['dom', 'int'], ['type', 'str'], - ['idx', 'str']]) + ['idx', 'int']]) val = fn(req.args, {'dom': self.dom.domid}) return val @@ -188,7 +177,7 @@ class SrvDomain(SrvDir): fn = FormFn(self.xd.domain_device_configure, [['dom', 'int'], ['config', 'sxpr'], - ['idx', 'str']]) + ['idx', 'int']]) val = fn(req.args, {'dom': self.dom.domid}) return val @@ -230,10 +219,6 @@ class SrvDomain(SrvDir): self.print_path(req) #self.ls() req.write('<p>%s</p>' % self.dom) - if self.dom.config: - req.write("<code><pre>") - PrettyPrint.prettyprint(self.dom.config, out=req) - req.write("</pre></code>") self.form(req) req.write('</body></html>') return '' |