ia64/xen-unstable

changeset 19382:f8201aea88a4

xend: Use vnc-listen setting specified in xend config file

If domU frame buffer configuration has no vnclisten attribute set, use
the global vnc-listen address specified in xend configuration file
when updating vfb location. Currently the hardcoded value 'localhost'
is used.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Mar 18 11:32:46 2009 +0000 (2009-03-18)
parents 9fc957e63f8d
children 6e619d8eece5
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue Mar 17 15:40:25 2009 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Mar 18 11:32:46 2009 +0000
     1.3 @@ -1410,7 +1410,8 @@ class XendDomainInfo:
     1.4              for dev_uuid, (dev_type, dev_info) in self.info['devices'].items():
     1.5                  if dev_type == 'vfb':
     1.6                      old_location = dev_info.get('location')
     1.7 -                    listen_host = dev_info.get('vnclisten', 'localhost')
     1.8 +                    listen_host = dev_info.get('vnclisten', \
     1.9 +                                XendOptions.instance().get_vnclisten_address())
    1.10                      new_location = '%s:%s' % (listen_host, str(vnc_port))
    1.11                      if old_location == new_location:
    1.12                          break