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] Stub implementations of VM.auto_power_on,

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Stub implementations of VM.auto_power_on, VM.consoles.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Dec 2006 10:50:24 +0000
Delivery-date: Fri, 15 Dec 2006 02:50:40 -0800
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>
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Stub implementations of VM.auto_power_on, VM.consoles., Xen patchbot-unstable <=