aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-05-31 13:32:53 +0000
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-05-31 13:32:53 +0000
commit227268c011826d4351feaa6327bc749890ddec24 (patch)
tree94d3c16121e3e83a0f7485ccba0f58e512ba399a /tools
parent92a1834268d455a7fb7565084c9793c75914aafb (diff)
downloadxen-227268c011826d4351feaa6327bc749890ddec24.tar.gz
xen-227268c011826d4351feaa6327bc749890ddec24.tar.bz2
xen-227268c011826d4351feaa6327bc749890ddec24.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/XendRoot.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/python/xen/xend/XendRoot.py b/tools/python/xen/xend/XendRoot.py
index 145a726b63..5623381f1d 100644
--- a/tools/python/xen/xend/XendRoot.py
+++ b/tools/python/xen/xend/XendRoot.py
@@ -42,6 +42,7 @@ class XendRoot:
"""Default path to the log file. """
logfile_default = "/var/log/xend.log"
+ """Default level of information to be logged."""
loglevel_default = 'DEBUG'
"""Default interface address xend listens at. """
@@ -54,7 +55,7 @@ class XendRoot:
xend_event_port_default = '8001'
"""Default inteface address xend listens at for consoles."""
- console_address_default = ''
+ console_address_default = 'localhost'
"""Default port xend serves consoles at. """
console_port_base_default = '9600'
@@ -238,9 +239,9 @@ class XendRoot:
def get_console_address(self):
"""Get the address xend listens at for its console ports.
- This defaults to the empty string which allows all hosts to connect.
- If this is set to 'localhost' only the localhost will be able to connect
- to the console ports.
+ This defaults to 'localhost', allowing only the localhost to connect
+ to the console ports. Setting this to the empty string, allows all
+ hosts to connect.
"""
return self.get_config_value('console-address', self.console_address_default)