Skip to content
Snippets Groups Projects
Commit 9ba21c2c authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

fix passing function to thread

parent 8a98e934
No related branches found
No related tags found
No related merge requests found
......@@ -230,7 +230,7 @@ class IdsOpportunistic:
IdsOpportunistic.is_stop = False
IdsOpportunistic.process_opportunistic_ids()
ids_thread = threading.Thread(target=IdsOpportunistic.start_ids())
ids_thread = threading.Thread(target=IdsOpportunistic.start_ids)
ids_thread.start()
elif not is_ids_deployed:
# set a return condition to kill IDS process and restore iptables rules
......
......@@ -419,10 +419,10 @@ def proceed_self_stabilizing_VC():
enable_br_netfilter()
create_bridge(BR_CENTER_NAME)
process_opportunistic_node(node.myid)
threading.Thread(target=start_process_from_queue()).start()
threading.Thread(target=start_process_from_queue).start()
# Start process requests of unikernel update
threading.Thread(target=update_unikernel()).start()
threading.Thread(target=update_unikernel).start()
# Checking the state change to deploy or remove the IDS unikernel
# If I stay at VC set more than 5s -> I deploy IDS unikernel, otherwise, IDS unikernel must be destroyed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment