X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=osm_openvim%2Fovim.py;h=a4108b6af5d302c1e3b690f7f552b628ae47dc2b;hb=refs%2Fchanges%2F24%2F1624%2F1;hp=39ab5789ea1abe0dbbcaf4c55c8eb9a5056e0989;hpb=9f6571090b203922cabb0382226be0fa48d6e046;p=osm%2Fopenvim.git diff --git a/osm_openvim/ovim.py b/osm_openvim/ovim.py index 39ab578..a4108b6 100755 --- a/osm_openvim/ovim.py +++ b/osm_openvim/ovim.py @@ -34,16 +34,16 @@ version_date = "Apr 2017" database_version = "0.17" #expected database schema version import threading -import osm_openvim.vim_db as vim_db +import vim_db import logging import imp import argparse from netaddr import IPNetwork from jsonschema import validate as js_v, exceptions as js_e -import osm_openvim.host_thread as ht -import osm_openvim.dhcp_thread as dt -import osm_openvim.openflow_thread as oft -import osm_openvim.openflow_conn as openflow_conn +import host_thread as ht +import dhcp_thread as dt +import openflow_thread as oft +import openflow_conn HTTP_Bad_Request = 400 @@ -249,7 +249,9 @@ class ovim(): thread = ht.host_thread(name=host['name'], user=host['user'], host=host['ip_name'], db=self.db_of, db_lock=self.db_lock, test=host_test_mode, image_path=self.config['image_path'], version=self.config['version'], host_id=host['uuid'], develop_mode=host_develop_mode, - develop_bridge_iface=host_develop_bridge_iface) + develop_bridge_iface=host_develop_bridge_iface, + logger_name=self.logger_name + ".host." + host['name'], + debug=self.config.get('log_level_host')) thread.start() self.config['host_threads'][host['uuid']] = thread @@ -1342,7 +1344,8 @@ class ovim(): db_lock=self.db_lock, test=host_test_mode, image_path=self.config['image_path'], version=self.config['version'], host_id='openvim_controller', develop_mode=host_develop_mode, - develop_bridge_iface=bridge_ifaces) + develop_bridge_iface=bridge_ifaces, logger_name=self.logger_name + ".host.controller", + debug=self.config.get('log_level_host')) self.config['host_threads']['openvim_controller'] = dhcp_host if not host_test_mode: