mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Fix broken xm commands.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
a499c2d2dd
commit
9a60ba6eb8
1 file changed
+6
-6
@@ -135,24 +135,24 @@ class SrvDomain(SrvDir):
|
||||
|
||||
def op_devices(self, op, req):
|
||||
return self.call(self.dom.getDeviceSxprs,
|
||||
[['deviceClass', 'str']],
|
||||
[['type', 'str']],
|
||||
req)
|
||||
|
||||
def op_device_create(self, op, req):
|
||||
return self.call(self.dom.device_create,
|
||||
[['dev_config', 'sxpr']],
|
||||
[['config', 'sxpr']],
|
||||
req)
|
||||
|
||||
def op_device_destroy(self, op, req):
|
||||
return self.call(self.dom.destroyDevice,
|
||||
[['deviceClass', 'str'],
|
||||
['devid', 'int']],
|
||||
[['type', 'str'],
|
||||
['dev', 'int']],
|
||||
req)
|
||||
|
||||
def op_device_configure(self, op, req):
|
||||
return self.call(self.dom.device_configure,
|
||||
[['dev_config', 'sxpr'],
|
||||
['devid', 'int']],
|
||||
[['config', 'sxpr'],
|
||||
['dev', 'int']],
|
||||
req)
|
||||
|
||||
|
||||
|
||||