From d6a0334fdc00b4b9f2106a39265626f0a2e442ca Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Mon, 18 Apr 2016 15:16:44 +0200 Subject: [PATCH] mpLinkCharacteristics: netem with all network parameters Seems that when we put a netem command, it "forgets" the current configuration... --- src/mpLinkCharacteristics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mpLinkCharacteristics.py b/src/mpLinkCharacteristics.py index 91e601d..7af0e66 100644 --- a/src/mpLinkCharacteristics.py +++ b/src/mpLinkCharacteristics.py @@ -36,7 +36,8 @@ class MpLinkCharacteristics: cmd = cmd + " tc qdisc change dev " + ifname + " " cmd = cmd + " parent " + MpLinkCharacteristics.tcNetemParent cmd = cmd + " handle " + MpLinkCharacteristics.tcNetemHandle - cmd = cmd + " netem " + n.cmd + " && " + cmd = cmd + " netem " + n.cmd + "delay " + self.delay + cmd = cmd + " rate " + self.bandwidth + "mbit && " cmd = cmd + " true &" return cmd