Implementation of host_metrics.get_all, PIF_metrics.get_all, and docs and

bindings for many of the get_all methods elsewhere that Xend already
implemented.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2007-02-27 01:05:32 +00:00
1 parent d8309d27a1
commit b33bb1e4d9
28 files changed
+534 -8

No files matched your search

+6
View File
@@ -807,6 +807,9 @@ class XendAPI(object):
host_metrics_attr_rw = []
host_metrics_methods = []
def host_metrics_get_all(self, _):
return xen_api_success([XendNode.instance().host_metrics_uuid])
def _host_metrics_get(self, ref, f):
return xen_api_success(getattr(node, f)())
@@ -971,6 +974,9 @@ class XendAPI(object):
PIF_metrics_attr_rw = []
PIF_methods = []
def PIF_metrics_get_all(self, _):
return xen_api_success(XendNode.instance().pif_metrics.keys())
def _PIF_metrics_get(self, ref):
return XendNode.instance().pif_metrics[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.