# HG changeset patch
# User john.levon@xxxxxxx
# Date 1205267286 25200
# Node ID 0e070c63a5ce10cc67431b6c239d085676ce2258
# Parent af2f196422b6d9d90aa1b37da7f4bc699cee7dd9
Allow libvirt to specify force, rm_cfg
When doing a 'virsh detach-disk' on a running domain, the disk is not removed
from the configuration file. Allow a caller to specify whether or not to
change the file.
Signed-off-by: Ryan Scott <ryan.scott@xxxxxxx>
diff --git a/tools/python/xen/xend/server/SrvDomain.py
b/tools/python/xen/xend/server/SrvDomain.py
--- a/tools/python/xen/xend/server/SrvDomain.py
+++ b/tools/python/xen/xend/server/SrvDomain.py
@@ -186,7 +186,9 @@ class SrvDomain(SrvDir):
def op_device_destroy(self, _, req):
return self.call(self.dom.destroyDevice,
[['type', 'str'],
- ['dev', 'str']],
+ ['dev', 'str'],
+ ['force', 'int'],
+ ['rm_cfg', 'int']],
req)
def op_device_configure(self, _, req):
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|