vitawasalreadytaken / tcviz

Visualize your Linux traffic control (TC) configuration.
MIT License
99 stars 21 forks source link

Does not work as expected (only prints single node) #11

Open Dentrax opened 2 years ago

Dentrax commented 2 years ago

Thanks for such a cool idea! It's a bit oldie and want to give it a try:

$ tc qdisc show > qdisc
$ tc class show > class
$ tc filter show > filter
$ ./tcviz.py qdisc class filter | dot -Tpng > tc.png

And the resulting the following below:

Screenshot 2022-11-04 at 14 19 46

Any ideas on this? @ze-phyr-us

vitawasalreadytaken commented 1 year ago

Hi @Dentrax. Sorry for the late response. I don't maintain this script anymore, but I had a quick look now. The script doesn't expect more than one qdisc with the same ID (0: in this case). I'm not familiar with TC anymore, but it seems the output format has changed somewhat. The script certainly doesn't expect the dev ens3 part that comes after the ID (0:) – see here: https://github.com/ze-phyr-us/tcviz/blob/master/Node.py#L24

I am sorry that I cannot help you further. The script is, sadly, very dated and unmaintained, and I haven't used TC in ages 🙈