Skip to main content

Python Netlink library

Project description

Python network configuration library

PyRoute2 uses Netlink protocol to communicate with the Linux kernel and get/set all the information kernel network objects.

todo

  • remote: sasl authentication

  • rtnl: bridge info: see ./net/bridge/br_netlink.c:br_fill_ifinfo()

  • rtnl: traffic control – work with queue disciplines

sample

More samples you can read in the project documentation. Here is just a small snippet:

from pyroute2 import iproute
ip = iproute()
print ip.get_links()

The project contains several modules for different types of netlink messages, not only RTNL.

installation

make install or easy_install pyroute2

requires

Python >= 2.6

changelog

  • 0.1.7
    • ipdb: interface creation: dummy, bond, bridge, vlan

    • ipdb: if_slaves interface obsoleted

    • ipdb: ‘direct’ mode

    • iproute: code refactored

    • examples: create() examples committed

  • 0.1.6
    • netlink: tc ingress, sfq, tbf, htb, u32 partial support

    • ipdb: completely re-implemented transactional model (see docs)

    • generic: internal fields declaration API changed for nlmsg

    • tests: first unit tests committed

  • 0.1.5
    • netlink: dedicated io buffering thread

    • netlink: messages reassembling

    • netlink: multi-uplink remote

    • netlink: masquerade remote requests

    • ipdb: represent interfaces hierarchy

    • iproute: decode VLAN info

  • 0.1.4
    • netlink: remote netlink access

    • netlink: SSL/TLS server/client auth support

    • netlink: tcp and unix transports

    • docs: started sphinx docs

  • 0.1.3
    • ipdb: context manager interface

    • ipdb: [fix] correctly handle ip addr changes in transaction

    • ipdb: [fix] make up()/down() methods transactional [#1]

    • iproute: mirror packets to 0 queue

    • iproute: [fix] handle primary ip address removal response

  • 0.1.2
    • initial ipdb version

    • iproute fixes

  • 0.1.1
    • initial release, iproute module

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyroute2-0.1.7.tar.gz (44.1 kB view details)

Uploaded Source

File details

Details for the file pyroute2-0.1.7.tar.gz.

File metadata

  • Download URL: pyroute2-0.1.7.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyroute2-0.1.7.tar.gz
Algorithm Hash digest
SHA256 c8ca685b6712d248444a4f092f9483201ed0dcfe0780fb6f854a9a4bae6444d2
MD5 85d155dc1e3a8c2c4a8ec8038138cd67
BLAKE2b-256 443896e7434b8fa77789edf9219369a6713c72116e71501a16dc7a24b1fc3772

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page