pyroute2
pyroute2 copied to clipboard
Python Netlink and PF_ROUTE library — network configuration and monitoring
Could you please let me know how to implement Active Queue Management (AQM) in TC-htb by pyroute2. Algorithm like linux tc qdisc pie or RED etc. Any articles?
Good morning, I want to use pyroute2 to add a VLAN to a bridge. In iproute2 I would run the following command: `bridge vlan add vid 500 dev bridge1 self`...
My code calls `IPRoute.get_addr(family=socket.AF_INET, label='eth0')` fairly frequently. After a bit, it starts doing this: ``` Traceback (most recent call last): File "InterfaceUtils.py", line 336, in valid_ip4_address File "pyroute2/iproute/linux.py", line 303,...
https://github.com/svinota/pyroute2/blob/506507d8db10085b8a5e128c82200727f71d6043/pyroute2/netlink/rtnl/tcmsg/em_meta.py#L132-L134 @Vic063 could you please elaborate a bit on that patching?
Hello, I'm trying to implement a new ematch decoder which uses different types of values depending on the selected ematch kind. The value can either be a string value or...
@ffourcot @atzm Coleagues, does anyone plan to write a method to inject conntrack entries? If not, I would do that on the weekend.
The documentation says: > You can provide a complete NLA structure or let filters do it for you. E.g., these pairs show equal statements: > ip.link("set", index=x, mtu=1000) > ip.link("set",...
pyroute2 filter API doesn't support matching mac address, for example, I can install a filter rule through the following command line: > # tc filter add dev vnet1 parent 1:0...
I suddenly found myself writing code like this: ``` vrflist = [( l.get('index'), dict(l.get('attrs', {})).get('IFLA_IFNAME'), dict( dict( dict( l.get('attrs', {}) ).get('IFLA_LINKINFO', {}).get('attrs', {}) ).get('IFLA_INFO_DATA', {}).get('attrs', {}) ).get('IFLA_VRF_TABLE'), ) for l...
This is apparently very similar to issue #167 The close operation for Queues invoked on release() seem to close only the reader socket. The writer socket is instead not closed....