mpLinkCharacteristics: seems to work?
This commit is contained in:
parent
0500749b90
commit
fb1f57a452
@ -34,7 +34,7 @@ class MpLinkCharacteristics:
|
||||
for n in self.netemAt:
|
||||
cmd = cmd + "sleep " + str(n.delta)
|
||||
cmd = cmd + " && (( tc qdisc del dev " + ifname + " root "
|
||||
cmd = cmd + " && tc qdisc add dev " + ifname + " root handle 5:0 htb && tc class add dev " + ifname + " "
|
||||
cmd = cmd + " && tc qdisc add dev " + ifname + " root handle 5:1 htb direct_qlen " + self.queueSize + " && tc class add dev " + ifname + " "
|
||||
cmd = cmd + " parent 5:1 "
|
||||
cmd = cmd + " classid " + MpLinkCharacteristics.tcHtbClassid
|
||||
cmd = cmd + " htb rate " + self.bandwidth + "mbit"
|
||||
|
Loading…
Reference in New Issue
Block a user