|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Add the VNC port to the output of xm list
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID 6e22ba7217201f3c3d7219d824f7aa80cd431c36
# Parent 0839db0aa61155a293ba224860f94fdfbfdbfa10
Add the VNC port to the output of xm list --long, if the value has been written
to xenstore by QEMU.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
tools/python/xen/xend/XendDomainInfo.py | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff -r 0839db0aa611 -r 6e22ba721720 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Wed Nov 15 09:33:01 2006 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py Wed Nov 15 09:44:12 2006 +0000
@@ -1659,9 +1659,17 @@ class XendDomainInfo:
log.trace("XendDomainInfo.update done on domain %s: %s",
str(self.domid), self.info)
- def sxpr(self, ignore_devices = False):
- return self.info.get_sxp(domain = self,
- ignore_devices = ignore_devices)
+ def sxpr(self, ignore_store = False):
+ result = self.info.get_sxp(domain = self,
+ ignore_devices = ignore_store)
+
+ if not ignore_store:
+ vnc_port = self._readDom('console/vnc-port')
+ if vnc_port is not None:
+ result.append(['device',
+ ['console', ['vnc-port', str(vnc_port)]]])
+
+ return result
# Xen API
# ----------------------------------------------------------------
_______________________________________________
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] Add the VNC port to the output of xm list --long, if the value has been written,
Xen patchbot-unstable <=
|
|
|
|
|