Added host.enabled flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
ewan@localhost.localdomain committed 2007-04-16 16:10:39 -04:00
1 parent 1d4f277da8
commit f01fa26a0f
4 files changed
+64 -3

No files matched your search

+4 -3
View File
@@ -876,7 +876,8 @@ class XendAPI(object):
'API_version_major',
'API_version_minor',
'API_version_vendor',
'API_version_vendor_implementation']
'API_version_vendor_implementation',
'enabled']
host_attr_rw = ['name_label',
'name_description',
@@ -933,8 +934,8 @@ class XendAPI(object):
return xen_api_success(XEN_API_VERSION_VENDOR)
def host_get_API_version_vendor_implementation(self, _, ref):
return xen_api_success(XEN_API_VERSION_VENDOR_IMPLEMENTATION)
def host_get_software_version(self, session, host_ref):
return xen_api_success(XendNode.instance().xen_version())
def host_get_enabled(self, _, _):
return xen_api_success(XendDomain.instance().allow_new_domains())
def host_get_resident_VMs(self, session, host_ref):
return xen_api_success(XendDomain.instance().get_domain_refs())
def host_get_PBDs(self, _, ref):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.