pyroute2 icon indicating copy to clipboard operation
pyroute2 copied to clipboard

docs: sched_clsact.py - typo and possibly wrong example

Open owah opened this issue 2 years ago • 1 comments

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.

owah avatar Jul 13 '22 22:07 owah

Thanks for reporting, I'm to fix that.

svinota avatar Jul 14 '22 00:07 svinota