[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Added isDevControllerClass so that XendDomainInfo does not need to store the same information internally. This may soon go, depending on how useful controller.py turns out to be.



# HG changeset patch
# User ewan@xxxxxxxxxxxxx
# Node ID 5aa6a2eff69fecdbc3d6c54e880ddd389ba1f735
# Parent  c5045197dcb78032bda1d9f1ecfdb8ceec42d618
Added isDevControllerClass so that XendDomainInfo does not need to store the 
same information internally.  This may soon go, depending on how useful 
controller.py turns out to be.

diff -r c5045197dcb7 -r 5aa6a2eff69f tools/python/xen/xend/server/controller.py
--- a/tools/python/xen/xend/server/controller.py        Tue Sep 13 13:48:22 2005
+++ b/tools/python/xen/xend/server/controller.py        Tue Sep 13 13:49:37 2005
@@ -62,6 +62,13 @@
     """
     cls.type = name
     getDevControllerTable().addDevControllerClass(cls)
+
+
+def isDevControllerClass(name):
+    """@return True if a device controller class has been registered with
+    the controller table under the given name."""
+    return name in getDevControllerTable().controllerClasses
+
 
 def createDevController(name, vm, recreate=False):
     return getDevControllerTable().createDevController(name, vm, 
recreate=recreate)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.