pyroute2 icon indicating copy to clipboard operation
pyroute2 copied to clipboard

Python Netlink and PF_ROUTE library — network configuration and monitoring

Results 174 pyroute2 issues
Sort by recently updated
recently updated
newest added

Related: https://community.home-assistant.io/t/error-with-2021-5-5-attributeerror-module-code-has-no-attribute-interactiveconsole/312497 Looks like the import must be fixed, since the console class may be stripped out even with the code module remaining.

After some investigation I think I hit some memory leak when using pyroute2.NDB. When executing the next https://github.com/luis5tb/bgp-agent/blob/main/bgp_agent/platform/utils/linux_net.py#L34-L43, on every execution I see that the memory allocated to the process...

bug

Suppose you use the example given in the docs about registering a callback, ... > from pyroute2 import IPRoute > from pyroute2.netlink.rtnl import RTMGRP_LINK > ipr = IPRoute() > ipr.bind(groups...

bug
docs

After building pyroute2-0.5.17 using `python3 setup.py build`. I am trying to run unit tests using `python3 setup.py test`. This throws error: running test running egg_info writing pyroute2.egg-info/PKG-INFO writing dependency_links to...

fr
docs

Hello In the docs, the process of using vlan filters is described as part of IPRoute: https://docs.pyroute2.org/iproute.html#pyroute2.iproute.linux.RTNL_API.vlan_filter Can NDB be used to configure the same code sequence as in the...

fr

`tests/general/test_conntrack.py::TestConntrack::test_stat` fails on modern kernels if they have CPU hotplugging enabled. My system returns 128 entries. It has 8 processors according to `/proc/cpuinfo` and the fields are all-zero beyond the...

bug

When setting a route with IPRoute, I am unable to set the source address for that specific route using pyroute2 0.5.12 (installed with pip3). This is a test case where...

docs

With `ip rule` it is possible to indicate all packets that don't have a fwmark. eg: `ip rule add not fwmark 1234 table 2468` Example from here: https://www.wireguard.com/netns/#the-classic-solutions Is this...

docs

Hi folks, This is a request for comments on a related project I put together. I found myself, having used `pyroute2` to interact with kernel based wireguard, then wanting to...

Hi, If I understand correctly, the only way to make pyroute2 behave with asyncio for now is to run ipdb in an [executor](https://docs.python.org/3/library/asyncio-eventloop.html?highlight=run_in_executor#executor) thread. This makes it hard to have...

fr