From 9f3e42d41ef2536faa0e713c0bd343efb79786ae Mon Sep 17 00:00:00 2001 From: Benjamin Hesmans Date: Tue, 20 Jan 2015 10:49:34 -0800 Subject: [PATCH] correct list for netem Signed-off-by: Benjamin Hesmans Signed-off-by: Benjamin Hesmans --- src/mpParamTopo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mpParamTopo.py b/src/mpParamTopo.py index 6b07860..ff49f3a 100644 --- a/src/mpParamTopo.py +++ b/src/mpParamTopo.py @@ -27,7 +27,9 @@ class MpParamTopo(MpParam): i = int(k[len(MpParamTopo.netemAt):]) val = self.paramDic[k] if not isinstance(val, list): - val = list(val) + tmp = val + val = [] + val.append(tmp) self.loadNetemAtList(i, val) def loadNetemAtList(self, id, nlist):