From 47c1393b5ae5fa981b16bd0347238072af0f538c Mon Sep 17 00:00:00 2001 From: Lukas Holst Date: Wed, 21 Aug 2024 09:26:56 -0400 Subject: [PATCH] simulation adjustments --- Modules/DTN/simulation/shared/run-dgs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/DTN/simulation/shared/run-dgs.py b/Modules/DTN/simulation/shared/run-dgs.py index e2b15e4c5..de998d2ff 100644 --- a/Modules/DTN/simulation/shared/run-dgs.py +++ b/Modules/DTN/simulation/shared/run-dgs.py @@ -25,7 +25,9 @@ router_variant = "flooding" # options: "flooding", "epidemic", "spray", "binary", "rdt", "rdt2" -# special config +rdt_client_operation_mode = "pushall" # options: "pushall", "requestlater" + +# special rdt configs addwins_rdt_number_of_additions = 1000 addwins_rdt_sleep_time_milliseconds = 500 @@ -224,7 +226,7 @@ def get_substituted_config_files(self): if rdt_variant == "addwins": additional_config = f"-awa {addwins_rdt_number_of_additions} -awt {addwins_rdt_sleep_time_milliseconds} " - config_str = f"bash -c '/root/.coregui/scripts/rdt_tool -m client -cr {rdt_variant}.{node_map[node_name]} {additional_config}-ma 172.16.0.1 &> client.log'" + config_str = f"bash -c '/root/.coregui/scripts/rdt_tool -m client -cr {rdt_variant}.{node_map[node_name]} -cm {rdt_client_operation_mode} {additional_config}-ma 172.16.0.1 &> client.log'" print(f"adding rdt client to node {node_name}, config: {config_str}") core.set_node_service(session_id, node_map[node_name], "rdtclient", startup=(config_str,))