mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
This commit is contained in:
1 parent
4aad88265b
commit
563e6b4690
1 file changed
+11
-3
@@ -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
|
||||
# ----------------------------------------------------------------
|
||||
|
||||