From 0a5a60932287dc0c5042b6f36c85157346c4a501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <sim.desaulniers@gmail.com> Date: Mon, 27 Mar 2017 23:27:32 -0400 Subject: [PATCH] benchmark: fix invalid ifname error Two instructions were mutually misordered. --- python/tools/benchmark.py | 2 +- python/tools/dht/tests.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python/tools/benchmark.py b/python/tools/benchmark.py index 36c5e74a..32e8bf60 100755 --- a/python/tools/benchmark.py +++ b/python/tools/benchmark.py @@ -186,6 +186,7 @@ if __name__ == '__main__': wb = WorkBench(args.ifname, args.virtual_locs, args.node_num, loss=args.loss, delay=args.delay, disable_ipv4=args.disable_ipv4, disable_ipv6=args.disable_ipv6) + wb.create_virtual_net() bootstrap = wb.get_bootstrap() bs_dht_log_enabled = False @@ -203,7 +204,6 @@ if __name__ == '__main__': bs_dht_log_enabled = True bootstrap.front().enableLogging() - wb.create_virtual_net() bootstrap.resize(1) print("Launching", wb.node_num, "nodes (", wb.clusters, "clusters of", wb.node_per_loc, "nodes)") diff --git a/python/tools/dht/tests.py b/python/tools/dht/tests.py index b53f34dc..40d86da3 100644 --- a/python/tools/dht/tests.py +++ b/python/tools/dht/tests.py @@ -11,6 +11,7 @@ import string import time import subprocess import re +import traceback import collections from matplotlib.ticker import FuncFormatter -- GitLab