X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=openmanod.py;h=3422a7cc50ab8099d88d7b3f2bee5ec94bf1ef0d;hb=20fc2a23c457b0206e6361a1652232d58c488b3c;hp=dbd7737e8f8d6a6a4b8f5fbed13708d9b111d6b3;hpb=3e9b91e7d755a2b87d6843b57fb2bc0b6ca096ba;p=osm%2FRO.git diff --git a/openmanod.py b/openmanod.py index dbd7737e..3422a7cc 100755 --- a/openmanod.py +++ b/openmanod.py @@ -33,8 +33,8 @@ It loads the configuration file and launches the http_server thread that will li ''' __author__="Alfonso Tierno, Gerardo Garcia, Pablo Montes" __date__ ="$26-aug-2014 11:09:29$" -__version__="0.4.44-r482" -version_date="Jul 2016" +__version__="0.4.45-r484" +version_date="Aug 2016" database_version="0.11" #expected database schema version import httpserver @@ -59,6 +59,8 @@ class LoadConfigurationException(Exception): def load_configuration(configuration_file): default_tokens ={'http_port':9090, 'http_host':'localhost', + 'http_console_proxy': True, + 'http_console_host': None, 'log_level': 'DEBUG', 'log_level_db': 'ERROR', 'log_level_vimconn': 'DEBUG', @@ -211,6 +213,10 @@ if __name__=="__main__": global_config["console_port_iterator"] = console_port_iterator global_config["console_thread"]={} global_config["console_ports"]={} + if not global_config["http_console_host"]: + global_config["http_console_host"] = global_config["http_host"] + if global_config["http_host"]=="0.0.0.0": + global_config["http_console_host"] = socket.gethostname() #Configure logging STEP 2 if "log_host" in global_config: