ping between all pairs of client/server IP addresses
This commit is contained in:
parent
e93b95cdd4
commit
014ce441c4
@ -362,9 +362,10 @@ class Experiment(object):
|
|||||||
self.topo.command_to(self.topo_config.client,
|
self.topo.command_to(self.topo_config.client,
|
||||||
"rm {}".format(Experiment.PING_OUTPUT))
|
"rm {}".format(Experiment.PING_OUTPUT))
|
||||||
count = self.experiment_parameter.get(ExperimentParameter.PING_COUNT)
|
count = self.experiment_parameter.get(ExperimentParameter.PING_COUNT)
|
||||||
|
for j in range(0, self.topo_config.server_interface_count()):
|
||||||
for i in range(0, self.topo_config.client_interface_count()):
|
for i in range(0, self.topo_config.client_interface_count()):
|
||||||
cmd = self.ping_command(self.topo_config.get_client_ip(i),
|
cmd = self.ping_command(self.topo_config.get_client_ip(i),
|
||||||
self.topo_config.get_server_ip(interface_index=0), n=count)
|
self.topo_config.get_server_ip(interface_index=j), n=count)
|
||||||
logging.info(cmd)
|
logging.info(cmd)
|
||||||
self.topo.command_to(self.topo_config.client, cmd)
|
self.topo.command_to(self.topo_config.client, cmd)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user