From dc501e3d83893689c23e94d7a5fe841897638143 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Wed, 8 Jul 2020 14:49:41 +0200 Subject: [PATCH] remove useless function --- core/experiment.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/experiment.py b/core/experiment.py index 173281c..64c1ee9 100644 --- a/core/experiment.py +++ b/core/experiment.py @@ -36,7 +36,6 @@ class ExperimentParameter(Parameter): BACKUP_PATH_0 = "backup_path_0" BACKUP_PATH_1 = "backup_path_1" BUFFER_AUTOTUNING = "bufferAutotuning" - METRIC = "metric" # Global sysctl keys SYSCTL_KEY = { @@ -76,7 +75,6 @@ class ExperimentParameter(Parameter): AUTOCORK: "1", EARLY_RETRANS: "3", BUFFER_AUTOTUNING: "1", - METRIC: "-1", CLIENT_PCAP: "no", SERVER_PCAP: "no", SNAPLEN_PCAP: "65535", # Default snapping value of tcpdump @@ -152,20 +150,10 @@ class Experiment(object): """ self.setup_sysctl() self.run_userspace_path_manager() # TODO to move elsewhere - self.change_metric() # TODO to move elsewhere self.put_priority_on_paths() # TODO to move elsewhere self.run_tcpdump() self.run_netem_at() - def change_metric(self): - """ - Function only meaningful for MPTCP and its specific scheduler - """ - metric = self.experiment_parameter.get(ExperimentParameter.METRIC) - if int(metric) >= 0: - self.topo.command_global( - "echo {} > /sys/module/mptcp_sched_metric/parameters/metric".format(metric)) - def put_priority_on_paths(self): """ Function only meaningful for MPTCP