===== tools/examples/xend-config.sxp 1.6 vs edited ===== --- 1.6/tools/examples/xend-config.sxp 2005-03-18 06:18:22 -05:00 +++ edited/tools/examples/xend-config.sxp 2005-05-29 00:51:46 -05:00 @@ -1,5 +1,8 @@ # Xend configuration file. +# Default for the flag indicating whether xend should run an http server. +(xend-http-server 'no') + # Port xend should use for the HTTP interface. (xend-port 8000) @@ -44,3 +47,28 @@ # Setup script for enbd-backed block devices (block-enbd block-enbd) +# Default path to the root of the database. +(dbroot "/var/lib/xen/xend-db") + +# Default path to the log file. +(logfile "/var/log/xend.log") + +# Default level of information to be logged. +(loglevel 'DEBUG') + +# Default for the flag indicating whether xend should run a relocation server. +(xend-relocation-server 'yes') + +# Default interface address xend listens at for its relocation server. +# If this is set to 'localhost' only the localhost will be able to connect +# to its relocation server. +(xend-relocation-address 'localhost') + +# Default port xend listens at for connection to its relocation server. +(xend-relocation-port '8002') + +# Default for the flag indicating whether xend should run a unix-domain server. +(xend-unix-server 'yes') + +# Default path the unix-domain server listens at. +(xend-unix-path '/var/lib/xend/xend-socket') ===== tools/python/xen/xend/XendRoot.py 1.22 vs edited ===== --- 1.22/tools/python/xen/xend/XendRoot.py 2005-05-25 11:03:17 -05:00 +++ edited/tools/python/xen/xend/XendRoot.py 2005-05-29 00:51:34 -05:00 @@ -43,19 +43,20 @@ """Default path to the log file. """ logfile_default = "/var/log/xend.log" + """Default level of information to be logged. """ loglevel_default = 'DEBUG' """Default for the flag indicating whether xend should run an http server.""" xend_http_server_default = 'no' """Default interface address xend listens at. """ - xend_address_default = '' + xend_address_default = 'localhost' """Default for the flag indicating whether xend should run a relocation server.""" xend_relocation_server_default = 'yes' """Default interface address the xend relocation server listens at. """ - xend_relocation_address_default = '' + xend_relocation_address_default = 'localhost' """Default port xend serves HTTP at. """ xend_port_default = '8000' @@ -73,7 +74,7 @@ xend_unix_path_default = '/var/lib/xend/xend-socket' """Default interface address xend listens at for consoles.""" - console_address_default = '' + console_address_default = 'localhost' """Default port xend serves consoles at. """ console_port_base_default = '9600' @@ -280,17 +281,15 @@ def get_xend_address(self): """Get the address xend listens at for its HTTP and event 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 HTTP and event ports. """ return self.get_config_value('xend-address', self.xend_address_default) def get_xend_relocation_address(self): - """Get the address xend listens at for its HTTP and event ports. - This defaults to the empty string which allows all hosts to connect. + """Get the interface address xend listens at for connection to its relocation server. If this is set to 'localhost' only the localhost will be able to connect - to the HTTP and event ports. + to its relocation server. """ return self.get_config_value('xend-relocation-address', self.xend_relocation_address_default) @@ -306,7 +305,6 @@ 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. """