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

log for ids deployment

parent 7d3047fe
No related branches found
No related tags found
No related merge requests found
......@@ -408,9 +408,11 @@ def proceed_self_stabilizing_VC():
if not is_ids_deployed and node.state == State.DECIDED_IN_VC and (time.time() - node.converge_time) > CONVERGE_TIME_THRESHOLD:
is_ids_deployed = True
IdsOpportunistic.ids_queue.put((node.myid, time.time(), is_ids_deployed))
print("IDS Deployment request")
elif is_ids_deployed and node.state == State.DECIDED_NOT_VC and (time.time() - node.converge_time) > CONVERGE_TIME_THRESHOLD:
is_ids_deployed = False
IdsOpportunistic.ids_queue.put((node.myid, time.time(), is_ids_deployed))
print("IDS Removal request")
def main():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment