# HG changeset patch
# User emellor@ewan
# Node ID 679e93b5c6cda85d7483ad3b13b0f5f7e8d8c274
# Parent 41735ccc5ee3b78eadeea72cef2883c344b821a3
Added getDeviceSxprs, to support xm block-list.
diff -r 41735ccc5ee3 -r 679e93b5c6cd tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Tue Sep 27 21:03:55 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py Tue Sep 27 21:05:03 2005
@@ -734,6 +734,25 @@
__repr__ = __str__
+ def createDevice(self, deviceClass, devconfig):
+ return self.getDeviceController(deviceClass).createDevice(devconfig)
+
+
+ def configureDevice(self, deviceClass, devid, devconfig):
+ return self.getDeviceController(deviceClass).configureDevice(
+ devid, devconfig)
+
+
+ def destroyDevice(self, deviceClass, devid):
+ return self.getDeviceController(deviceClass).destroyDevice(devid)
+
+
+ def getDeviceSxprs(self, deviceClass):
+ return self.getDeviceController(deviceClass).sxprs()
+
+
+ ## private:
+
def getDeviceController(self, name):
if name not in controllerClasses:
raise XendError("unknown device type: " + str(name))
@@ -741,18 +760,7 @@
return controllerClasses[name](self)
- def createDevice(self, deviceClass, devconfig):
- return self.getDeviceController(deviceClass).createDevice(devconfig)
-
-
- def configureDevice(self, deviceClass, devid, devconfig):
- return self.getDeviceController(deviceClass).configureDevice(
- devid, devconfig)
-
-
- def destroyDevice(self, deviceClass, devid):
- return self.getDeviceController(deviceClass).destroyDevice(devid)
-
+ ## public:
def sxpr(self):
sxpr = ['domain',
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|