mpLinkCharacteristics: trying to make it works

This commit is contained in:
Quentin De Coninck 2016-05-08 19:19:46 +02:00
parent e2701685b7
commit 0500749b90

View File

@ -34,8 +34,8 @@ class MpLinkCharacteristics:
for n in self.netemAt:
cmd = cmd + "sleep " + str(n.delta)
cmd = cmd + " && (( tc qdisc del dev " + ifname + " root "
cmd = cmd + " && tc class add dev " + ifname + " "
cmd = cmd + " parent root "
cmd = cmd + " && tc qdisc add dev " + ifname + " root handle 5:0 htb && tc class add dev " + ifname + " "
cmd = cmd + " parent 5:1 "
cmd = cmd + " classid " + MpLinkCharacteristics.tcHtbClassid
cmd = cmd + " htb rate " + self.bandwidth + "mbit"
cmd = cmd + " burst " + str(int(self.queueSize) * 1500) + ") || "