BSD Ports

net/py-pyroute2 0.7.12 DragonFly

Python Netlink library

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20, GPLv2+
Categories
net, python
Package size
829.3 KiB, 5871.1 KiB installed

Description

Pyroute2 is a pure Python netlink library. It requires only Python stdlib, no 3rd party libraries. The library was started as an RTNL protocol implementation, so the name is pyroute2, but now it supports many netlink protocols. Some supported netlink families and protocols:

  • rtnl, network settings --- addresses, routes, traffic controls
  • nfnetlink --- netfilter API: ipset, nftables, ...
  • ipq --- simplest userspace packet filtering, iptables QUEUE target
  • devlink --- manage and monitor devlink-enabled hardware
  • generic --- generic netlink families
    • nl80211 --- wireless functions API (basic support)
    • taskstats --- extended process statistics
    • acpi_events --- ACPI events monitoring
    • thermal_events --- thermal events monitoring
    • VFS_DQUOT --- disk quota events monitoring

Starting with 0.5.2 the library supports also PF_ROUTE sockets on BSD systems.

In the other systems

SystemPortVersion
DragonFlynet/py-pyroute20.7.12
FreeBSDnet/py-pyroute20.9.6
HardenedBSDnet/py-pyroute20.9.6
GhostBSDnet/py-pyroute20.7.12

Install

Binary package:

pkg install py311-pyroute2

From DPorts:

cd /usr/dports/net/py-pyroute2 && make install clean

Dependencies

Run dependencies 1