pyroute2
pyroute2 copied to clipboard
docs: sched_clsact.py - typo and possibly wrong example
Hi,
the docs at https://github.com/svinota/pyroute2/blob/svinota-nox/pyroute2/netlink/rtnl/tcmsg/sched_clsact.py define a variable called eth0
which points to the ethernet adapter, whereas the ip.tc()
command is receiving a variable called idx
.
The egress clsact line also does not define an egress function.
I also want to mention that I am currently in the process of trying to learn BPF, and I am not sure if these docs are wrong or if I am just not experienced with BPF and tc thus far.
Thanks for reporting, I'm to fix that.