ia64/xen-unstable

changeset 13041:da0849b74170

Stub implementations of VM.auto_power_on, VM.consoles.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Dec 14 17:43:41 2006 +0000 (2006-12-14)
parents 5c8522bda629
children 0ee4e33b4401
files tools/python/xen/xend/XendAPI.py tools/python/xen/xend/XendConfig.py tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Thu Dec 14 17:37:29 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Thu Dec 14 17:43:41 2006 +0000
     1.3 @@ -567,6 +567,7 @@ class XendAPI:
     1.4                    'VCPUs_utilisation',
     1.5                    'VCPUs_features_required',
     1.6                    'VCPUs_can_use',
     1.7 +                  'consoles',
     1.8                    'VIFs',
     1.9                    'VBDs',
    1.10                    'VTPMs',
    1.11 @@ -578,6 +579,7 @@ class XendAPI:
    1.12                    'name_description',
    1.13                    'user_version',
    1.14                    'is_a_template',
    1.15 +                  'auto_power_on',
    1.16                    'memory_dynamic_max',
    1.17                    'memory_dynamic_min',
    1.18                    'VCPUs_policy',
    1.19 @@ -961,6 +963,7 @@ class XendAPI:
    1.20              'name_description': xeninfo.getName(),
    1.21              'user_version': 1,
    1.22              'is_a_template': False,
    1.23 +            'auto_power_on': False,
    1.24              'resident_on': XendNode.instance().uuid,
    1.25              'memory_static_min': xeninfo.get_memory_static_min(),
    1.26              'memory_static_max': xeninfo.get_memory_static_max(),
    1.27 @@ -979,6 +982,7 @@ class XendAPI:
    1.28              'actions_after_reboot': xeninfo.get_on_reboot(),
    1.29              'actions_after_suspend': xeninfo.get_on_suspend(),
    1.30              'actions_after_crash': xeninfo.get_on_crash(),
    1.31 +            'consoles': xeninfo.get_consoles(),
    1.32              'VIFs': xeninfo.get_vifs(),
    1.33              'VBDs': xeninfo.get_vbds(),
    1.34              'VTPMs': xeninfo.get_vtpms(),
     2.1 --- a/tools/python/xen/xend/XendConfig.py	Thu Dec 14 17:37:29 2006 +0000
     2.2 +++ b/tools/python/xen/xend/XendConfig.py	Thu Dec 14 17:43:41 2006 +0000
     2.3 @@ -353,6 +353,7 @@ class XendConfig(dict):
     2.4              'online_vcpus': 1,
     2.5              'max_vcpu_id': 0,
     2.6              'vcpu_avail': 1,
     2.7 +            'console_refs': [],
     2.8              'vif_refs': [],
     2.9              'vbd_refs': [],
    2.10              'vtpm_refs': [],
    2.11 @@ -643,6 +644,7 @@ class XendConfig(dict):
    2.12          # set device references in the configuration
    2.13          self['devices'] = cfg.get('devices', {})
    2.14          
    2.15 +        self['console_refs'] = []
    2.16          self['vif_refs'] = []
    2.17          self['vbd_refs'] = []
    2.18          self['vtpm_refs'] = []
     3.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Dec 14 17:37:29 2006 +0000
     3.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Dec 14 17:43:41 2006 +0000
     3.3 @@ -1927,6 +1927,9 @@ class XendDomainInfo:
     3.4                  
     3.5          return vcpu_util
     3.6  
     3.7 +    def get_consoles(self):
     3.8 +        return self.info.get('console_refs', [])
     3.9 +
    3.10      def get_vifs(self):
    3.11          return self.info.get('vif_refs', [])
    3.12