pyroute2
pyroute2 copied to clipboard
Python Netlink and PF_ROUTE library — network configuration and monitoring
### Discussed in https://github.com/svinota/pyroute2/discussions/880 Originally posted by **moepman** February 14, 2022 I wonder if it would be possible to provide stub files [1] which would help type checkers such as...
Hello. There is difference between pyroute2 and Conntrack output (mismatch) In below code, when we get state from **conntrack output** , it returns **TIME_WAIT** **but** pyroute2 Conntrack, returns two different...
Recent kernels have gained support for dumping policy information about generic netlink interfaces. I want to add support for the CTRL_CMD_GETPOLICY to enable dumping such policy information. Unfortunately, the way...
I saw these information in the [Quickstart](https://docs.pyroute2.org/usage.html) : > In the runtime pyroute2 socket objects behave as normal sockets. **One can use them in the poll/select**, one can call recv()...
"_get_ns_by_inode" can return an exception (ENOENT) if during the function loop, one of the namespaces listed in "listnetns" [1] is deleted. [2] will fail if the namespace does not exist...
Rules are created despite the error being thrown, and the same for deletion. Step to reproduce, with pyroute2 0.6.9 version: >>> import pyroute2 >>> from socket import AF_INET6 >>> ndb...
With what do I replace `pyroute2.arp` ? I have a module that contains, amongst other stuff, ``` import pyroute2 import pyroute2.arp ... self.ip = pyroute2.IPRoute() ... for ifl in self.ip.get_links():...
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...