ia64/xen-unstable

changeset 12474:6e22ba721720

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@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Nov 15 09:44:12 2006 +0000 (2006-11-15)
parents 0839db0aa611
children 11a93cc59159
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Nov 15 09:33:01 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Nov 15 09:44:12 2006 +0000
     1.3 @@ -1659,9 +1659,17 @@ class XendDomainInfo:
     1.4          log.trace("XendDomainInfo.update done on domain %s: %s",
     1.5                    str(self.domid), self.info)
     1.6  
     1.7 -    def sxpr(self, ignore_devices = False):
     1.8 -        return self.info.get_sxp(domain = self,
     1.9 -                                 ignore_devices = ignore_devices)
    1.10 +    def sxpr(self, ignore_store = False):
    1.11 +        result = self.info.get_sxp(domain = self,
    1.12 +                                   ignore_devices = ignore_store)
    1.13 +
    1.14 +        if not ignore_store:
    1.15 +            vnc_port = self._readDom('console/vnc-port')
    1.16 +            if vnc_port is not None:
    1.17 +                result.append(['device',
    1.18 +                               ['console', ['vnc-port', str(vnc_port)]]])
    1.19 +
    1.20 +        return result
    1.21  
    1.22      # Xen API
    1.23      # ----------------------------------------------------------------