summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ab60396)
Change-Id: Ie56b940d5a5b4e7d38fa85e9921ea39a66ec0469
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
default_volume_size = '5' #size in GB
global ovim
ovim = None
default_volume_size = '5' #size in GB
global ovim
ovim = None
vimconn_imported = {} # dictionary with VIM type as key, loaded module as value
vim_threads = {"running":{}, "deleting": {}, "names": []} # threads running for attached-VIMs
vimconn_imported = {} # dictionary with VIM type as key, loaded module as value
vim_threads = {"running":{}, "deleting": {}, "names": []} # threads running for attached-VIMs
raise NfvoException(str(e) + " at nfvo.get_vim", e.http_code)
def stop_service():
raise NfvoException(str(e) + " at nfvo.get_vim", e.http_code)
def stop_service():
+ global ovim, global_config
if ovim:
ovim.stop_service()
for thread_id,thread in vim_threads["running"].items():
thread.insert_task(new_task("exit", None, store=False))
vim_threads["deleting"][thread_id] = thread
vim_threads["running"] = {}
if ovim:
ovim.stop_service()
for thread_id,thread in vim_threads["running"].items():
thread.insert_task(new_task("exit", None, store=False))
vim_threads["deleting"][thread_id] = thread
vim_threads["running"] = {}
+ if global_config and global_config.get("console_thread"):
+ for thread in global_config["console_thread"]:
+ thread.terminate = True
def get_flavorlist(mydb, vnf_id, nfvo_tenant=None):
def get_flavorlist(mydb, vnf_id, nfvo_tenant=None):
nfvo.stop_service()
if httpthread:
httpthread.join(1)
nfvo.stop_service()
if httpthread:
httpthread.join(1)
- for thread in global_config["console_thread"]:
- thread.terminate = True