Added host.supported_bootloaders field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2007-02-20 22:54:30 +00:00
1 parent c24f2b2bec
commit 160d895b13
2 files changed
+39 -2

No files matched your search

+6 -2
View File
@@ -626,7 +626,8 @@ class XendAPI(object):
host_attr_ro = ['software_version',
'resident_VMs',
'host_CPUs',
'metrics']
'metrics',
'supported_bootloaders']
host_attr_rw = ['name_label',
'name_description',
@@ -678,6 +679,8 @@ class XendAPI(object):
return xen_api_success(XendNode.instance().get_host_cpu_refs())
def host_get_metrics(self, _, ref):
return xen_api_success(XendNode.instance().host_metrics_uuid)
def host_get_supported_bootloaders(self, session, host_ref):
return xen_api_success(['pygrub'])
# object methods
def host_disable(self, session, host_ref):
@@ -707,7 +710,8 @@ class XendAPI(object):
'software_version': node.xen_version(),
'resident_VMs': dom.get_domain_refs(),
'host_CPUs': node.get_host_cpu_refs(),
'metrics': node.host_metrics_uuid}
'metrics': node.host_metrics_uuid,
'supported_bootloaders': 'pygrub'}
return xen_api_success(record)
# class methods
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.