|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Added isDevControllerClass so that XendDomainInfo does n
# 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
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [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.,
Xen patchbot -unstable <=
|
Previous by Date: |
[Xen-changelog] Removed {add, get}_{config, device}_handler in favour of using a simple dictionary directly. Fix a misnamed variable blconfig that was supposed to refer to blcfg. This showed up under pylint as a undefined variable, but would have manifested itself in the bootloader configuration being ignored., Xen patchbot -unstable |
Next by Date: |
[Xen-changelog] Added help line for dev-docs target., Xen patchbot -unstable |
Previous by Thread: |
[Xen-changelog] Removed {add, get}_{config, device}_handler in favour of using a simple dictionary directly. Fix a misnamed variable blconfig that was supposed to refer to blcfg. This showed up under pylint as a undefined variable, but would have manifested itself in the bootloader configuration being ignored., Xen patchbot -unstable |
Next by Thread: |
[Xen-changelog] Added help line for dev-docs target., Xen patchbot -unstable |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|
|
|