xen-vtx-unstable

diff tools/python/xen/xend/server/controller.py @ 6774:4d899a738d59

merge?
author cl349@firebug.cl.cam.ac.uk
date Tue Sep 13 15:05:49 2005 +0000 (2005-09-13)
parents 7d0fb56b4a91 5aa6a2eff69f
children e7c7196fa329 8ca0f98ba8e2
line diff
     1.1 --- a/tools/python/xen/xend/server/controller.py	Tue Sep 13 10:49:04 2005 +0000
     1.2 +++ b/tools/python/xen/xend/server/controller.py	Tue Sep 13 15:05:49 2005 +0000
     1.3 @@ -63,6 +63,13 @@ def addDevControllerClass(name, cls):
     1.4      cls.type = name
     1.5      getDevControllerTable().addDevControllerClass(cls)
     1.6  
     1.7 +
     1.8 +def isDevControllerClass(name):
     1.9 +    """@return True if a device controller class has been registered with
    1.10 +    the controller table under the given name."""
    1.11 +    return name in getDevControllerTable().controllerClasses
    1.12 +
    1.13 +
    1.14  def createDevController(name, vm, recreate=False):
    1.15      return getDevControllerTable().createDevController(name, vm, recreate=recreate)
    1.16