From 345e7a0c57ed708e64656281d9aff6c047133042 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Wed, 1 Jul 2020 16:12:56 +0200 Subject: [PATCH] better log ping commands --- core/experiment.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/experiment.py b/core/experiment.py index fc99235..b5ee251 100644 --- a/core/experiment.py +++ b/core/experiment.py @@ -363,9 +363,10 @@ class Experiment(object): "rm {}".format(Experiment.PING_OUTPUT)) count = self.experiment_parameter.get(ExperimentParameter.PING_COUNT) for i in range(0, self.topo_config.client_interface_count()): - cmd = self.ping_command(self.topo_config.get_client_ip(i), - self.topo_config.get_server_ip(), n = count) - self.topo.command_to(self.topo_config.client, cmd) + cmd = self.ping_command(self.topo_config.get_client_ip(i), + self.topo_config.get_server_ip(), n=count) + logging.info(cmd) + self.topo.command_to(self.topo_config.client, cmd) def ping_command(self, from_ip, to_ip, n=5): return "ping -c {} -I {} {} >> {}".format(n, from_ip, to_ip, Experiment.PING_OUTPUT)