Skip to contentSkip to conversation

tc class replace doesn't change parent?

DISCUSSION Denys Fedoryshchenko 1 participant 1 message Apr 21, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi

Just got probably bug, or maybe undocumented feature, that is easy to reproduce:

core7 ~ # tc qdisc replace dev eth0 root handle 1: htb
core7 ~ # tc class add dev eth0 classid 1:1 parent 1: htb rate 1Mbit ceil 1Mbit core7 ~ # tc class show dev eth0
class htb 1:1 root prio 0 rate 1000Kbit ceil 1000Kbit burst 1600b cburst 1600b core7 ~ # tc class replace dev eth0 classid 1:1 parent 1:2 htb rate 1Mbit ceil 1Mbit core7 ~ # tc class show dev eth0
class htb 1:1 root prio 0 rate 1000Kbit ceil 1000Kbit burst 1600b cburst 1600b

Note: parent didn't changed, while it should be changed, i think, since operation is not change, it is replace.

---
Denys Fedoryshchenko, Network Engineer, Virtual ISP S.A.L.