mpLinkCharacteristics: trying to make it works
This commit is contained in:
parent
e2701685b7
commit
0500749b90
@ -34,8 +34,8 @@ class MpLinkCharacteristics:
|
|||||||
for n in self.netemAt:
|
for n in self.netemAt:
|
||||||
cmd = cmd + "sleep " + str(n.delta)
|
cmd = cmd + "sleep " + str(n.delta)
|
||||||
cmd = cmd + " && (( tc qdisc del dev " + ifname + " root "
|
cmd = cmd + " && (( tc qdisc del dev " + ifname + " root "
|
||||||
cmd = cmd + " && tc class add dev " + ifname + " "
|
cmd = cmd + " && tc qdisc add dev " + ifname + " root handle 5:0 htb && tc class add dev " + ifname + " "
|
||||||
cmd = cmd + " parent root "
|
cmd = cmd + " parent 5:1 "
|
||||||
cmd = cmd + " classid " + MpLinkCharacteristics.tcHtbClassid
|
cmd = cmd + " classid " + MpLinkCharacteristics.tcHtbClassid
|
||||||
cmd = cmd + " htb rate " + self.bandwidth + "mbit"
|
cmd = cmd + " htb rate " + self.bandwidth + "mbit"
|
||||||
cmd = cmd + " burst " + str(int(self.queueSize) * 1500) + ") || "
|
cmd = cmd + " burst " + str(int(self.queueSize) * 1500) + ") || "
|
||||||
|
Loading…
Reference in New Issue
Block a user