[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Stub implementations of VM.auto_power_on, VM.consoles.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID da0849b741707e07723f97f7b3fc4b16a88636da
# Parent  5c8522bda6296a9e3e485a875a9076d31de760f1
Stub implementations of VM.auto_power_on, VM.consoles.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendAPI.py        |    4 ++++
 tools/python/xen/xend/XendConfig.py     |    2 ++
 tools/python/xen/xend/XendDomainInfo.py |    3 +++
 3 files changed, 9 insertions(+)

diff -r 5c8522bda629 -r da0849b74170 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Thu Dec 14 17:37:29 2006 +0000
+++ b/tools/python/xen/xend/XendAPI.py  Thu Dec 14 17:43:41 2006 +0000
@@ -567,6 +567,7 @@ class XendAPI:
                   'VCPUs_utilisation',
                   'VCPUs_features_required',
                   'VCPUs_can_use',
+                  'consoles',
                   'VIFs',
                   'VBDs',
                   'VTPMs',
@@ -578,6 +579,7 @@ class XendAPI:
                   'name_description',
                   'user_version',
                   'is_a_template',
+                  'auto_power_on',
                   'memory_dynamic_max',
                   'memory_dynamic_min',
                   'VCPUs_policy',
@@ -961,6 +963,7 @@ class XendAPI:
             'name_description': xeninfo.getName(),
             'user_version': 1,
             'is_a_template': False,
+            'auto_power_on': False,
             'resident_on': XendNode.instance().uuid,
             'memory_static_min': xeninfo.get_memory_static_min(),
             'memory_static_max': xeninfo.get_memory_static_max(),
@@ -979,6 +982,7 @@ class XendAPI:
             'actions_after_reboot': xeninfo.get_on_reboot(),
             'actions_after_suspend': xeninfo.get_on_suspend(),
             'actions_after_crash': xeninfo.get_on_crash(),
+            'consoles': xeninfo.get_consoles(),
             'VIFs': xeninfo.get_vifs(),
             'VBDs': xeninfo.get_vbds(),
             'VTPMs': xeninfo.get_vtpms(),
diff -r 5c8522bda629 -r da0849b74170 tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py       Thu Dec 14 17:37:29 2006 +0000
+++ b/tools/python/xen/xend/XendConfig.py       Thu Dec 14 17:43:41 2006 +0000
@@ -353,6 +353,7 @@ class XendConfig(dict):
             'online_vcpus': 1,
             'max_vcpu_id': 0,
             'vcpu_avail': 1,
+            'console_refs': [],
             'vif_refs': [],
             'vbd_refs': [],
             'vtpm_refs': [],
@@ -643,6 +644,7 @@ class XendConfig(dict):
         # set device references in the configuration
         self['devices'] = cfg.get('devices', {})
         
+        self['console_refs'] = []
         self['vif_refs'] = []
         self['vbd_refs'] = []
         self['vtpm_refs'] = []
diff -r 5c8522bda629 -r da0849b74170 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Thu Dec 14 17:37:29 2006 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py   Thu Dec 14 17:43:41 2006 +0000
@@ -1927,6 +1927,9 @@ class XendDomainInfo:
                 
         return vcpu_util
 
+    def get_consoles(self):
+        return self.info.get('console_refs', [])
+
     def get_vifs(self):
         return self.info.get('vif_refs', [])
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.