[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Use vnc-listen setting specified in xend config file


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Jim Fehlig <jfehlig@xxxxxxxxxx>
  • Date: Wed, 11 Mar 2009 12:43:45 -0600
  • Delivery-date: Wed, 11 Mar 2009 11:44:18 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Use the vnc-listen address specified in xend configuration file when
updating vfb location setting.  Currently the hardcoded value
'localhost' is used.

    Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx>


diff -r a4274d1e85a3 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Wed Mar 11 13:11:21 2009 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Mar 11 12:34:37 2009 -0600
@@ -1410,7 +1410,8 @@ class XendDomainInfo:
             for dev_uuid, (dev_type, dev_info) in self.info['devices'].items():
                 if dev_type == 'vfb':
                     old_location = dev_info.get('location')
-                    listen_host = dev_info.get('vnclisten', 'localhost')
+                    listen_host = dev_info.get('vnclisten',
+                                               
XendOptions.instance().get_vnclisten_address())
                     new_location = '%s:%s' % (listen_host, str(vnc_port))
                     if old_location == new_location:
                         break
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.