ia64/xen-unstable

changeset 5228:49476fed0296

bitkeeper revision 1.1159.258.161 (429c6785ldESInztrl6dDaEZHXUyZg)

XendRoot.py:
Document loglevel_default and change default interface address for
listening at for console connections.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue May 31 13:32:53 2005 +0000 (2005-05-31)
parents fbc155c746d4
children ea32d909807d 9d463569c705 eadd4af8ee1a
files tools/python/xen/xend/XendRoot.py
line diff
     1.1 --- a/tools/python/xen/xend/XendRoot.py	Tue May 31 13:17:58 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendRoot.py	Tue May 31 13:32:53 2005 +0000
     1.3 @@ -42,6 +42,7 @@ class XendRoot:
     1.4      """Default path to the log file. """
     1.5      logfile_default = "/var/log/xend.log"
     1.6  
     1.7 +    """Default level of information to be logged."""
     1.8      loglevel_default = 'DEBUG'
     1.9  
    1.10      """Default interface address xend listens at. """
    1.11 @@ -54,7 +55,7 @@ class XendRoot:
    1.12      xend_event_port_default   = '8001'
    1.13  
    1.14      """Default inteface address xend listens at for consoles."""
    1.15 -    console_address_default   = ''
    1.16 +    console_address_default   = 'localhost'
    1.17  
    1.18      """Default port xend serves consoles at. """
    1.19      console_port_base_default = '9600'
    1.20 @@ -238,9 +239,9 @@ class XendRoot:
    1.21  
    1.22      def get_console_address(self):
    1.23          """Get the address xend listens at for its console ports.
    1.24 -        This defaults to the empty string which allows all hosts to connect.
    1.25 -        If this is set to 'localhost' only the localhost will be able to connect
    1.26 -        to the console ports.
    1.27 +        This defaults to 'localhost', allowing only the localhost to connect
    1.28 +        to the console ports.  Setting this to the empty string, allows all
    1.29 +        hosts to connect.
    1.30          """
    1.31          return self.get_config_value('console-address', self.console_address_default)
    1.32