WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Added VM_metrics.get_all.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Added VM_metrics.get_all.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Mar 2007 05:30:12 -0700
Delivery-date: Thu, 15 Mar 2007 05:30:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1173906244 0
# Node ID 036e42d1c9bb24763dc8810f3234f6b803263cc3
# Parent  0c354aa0bb4aa66a47729b77d7b16ac27a662d8b
Added VM_metrics.get_all.

Signed-off-by: Tom Wilkie <tom.wilkie@xxxxxxxxx>
---
 tools/python/xen/xend/XendAPI.py       |    3 +++
 tools/python/xen/xend/XendVMMetrics.py |    5 +++++
 2 files changed, 8 insertions(+)

diff -r 0c354aa0bb4a -r 036e42d1c9bb tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Wed Mar 14 21:02:58 2007 +0000
+++ b/tools/python/xen/xend/XendAPI.py  Wed Mar 14 21:04:04 2007 +0000
@@ -1516,6 +1516,9 @@ class XendAPI(object):
     def _VM_metrics_get(self, ref):
         return XendVMMetrics.get_by_uuid(ref)
 
+    def VM_metrics_get_all(self, _):
+        return xen_api_success(XendVMMetrics.get_all())
+
     def VM_metrics_get_record(self, _, ref):
         return xen_api_success(self._VM_metrics_get(ref).get_record())
 
diff -r 0c354aa0bb4a -r 036e42d1c9bb tools/python/xen/xend/XendVMMetrics.py
--- a/tools/python/xen/xend/XendVMMetrics.py    Wed Mar 14 21:02:58 2007 +0000
+++ b/tools/python/xen/xend/XendVMMetrics.py    Wed Mar 14 21:04:04 2007 +0000
@@ -31,6 +31,11 @@ class XendVMMetrics:
         return uuid in instances
 
     is_valid_vm_metrics = classmethod(is_valid_vm_metrics)
+
+    def get_all(_):
+        return instances.keys()
+
+    get_all = classmethod(get_all)
    
     def __init__(self, uuid, xend_domain_instance):
         self.uuid = uuid

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Added VM_metrics.get_all., Xen patchbot-unstable <=