ia64/xen-unstable

changeset 12756:dc9a47212ac4

[XEND] Fix case mismatch in VM.get_record for Xen API

Also make VM.get_all return halted domains too.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Dec 01 17:21:19 2006 +0000 (2006-12-01)
parents c4225c95dbcd
children e3d62983bc2f
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Fri Dec 01 16:31:36 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Fri Dec 01 17:21:19 2006 +0000
     1.3 @@ -931,7 +931,7 @@ class XendAPI:
     1.4      
     1.5      # class methods
     1.6      def VM_get_all(self, session):
     1.7 -        refs = [d.get_uuid() for d in XendDomain.instance().list()]
     1.8 +        refs = [d.get_uuid() for d in XendDomain.instance().list('all')]
     1.9          return xen_api_success(refs)
    1.10      
    1.11      def VM_get_by_name_label(self, session, label):
    1.12 @@ -966,14 +966,14 @@ class XendAPI:
    1.13              'memory_dynamic_min': xeninfo.get_memory_dynamic_min(),
    1.14              'memory_dynamic_max': xeninfo.get_memory_dynamic_max(),
    1.15              'memory_actual': xeninfo.get_memory_static_min(),
    1.16 -            'vcpus_policy': xeninfo.get_vcpus_policy(),
    1.17 -            'vcpus_params': xeninfo.get_vcpus_params(),
    1.18 -            'vcpus_number': xeninfo.getVCpuCount(),
    1.19 -            'vcpus_utilisation': xeninfo.get_vcpus_util(),
    1.20 -            'vcpus_features_required': [],
    1.21 -            'vcpus_features_can_use': [],
    1.22 -            'vcpus_features_force_on': [],
    1.23 -            'vcpus_features_force_off': [],
    1.24 +            'VCPUs_policy': xeninfo.get_vcpus_policy(),
    1.25 +            'VCPUs_params': xeninfo.get_vcpus_params(),
    1.26 +            'VCPUs_number': xeninfo.getVCpuCount(),
    1.27 +            'VCPUs_utilisation': xeninfo.get_vcpus_util(),
    1.28 +            'VCPUs_features_required': [],
    1.29 +            'VCPUs_features_can_use': [],
    1.30 +            'VCPUs_features_force_on': [],
    1.31 +            'VCPUs_features_force_off': [],
    1.32              'actions_after_shutdown': xeninfo.get_on_shutdown(),
    1.33              'actions_after_reboot': xeninfo.get_on_reboot(),
    1.34              'actions_after_suspend': xeninfo.get_on_suspend(),