dect
/
libnl
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
libnl/python/netlink/route
Antoni S. Puimedon 72c2cb9e29 Enabled the use of Links as context managers.
With this change you can still set do modifications of
Links and then to change to pass the changes to the
kernel. But it additionally enables you to interact
with this part of libnl-python in a more pythonic
way. Instead of:

    eth0 = links['eth0']
    eth0.mtu = 5000
    eth0.change()

you can do:

    with links['eth0'] as eth0:
        eth0.mtu = 5000
2012-10-04 16:36:55 -04:00
..
links netlink.nlattr re-implemented in more pythonic way 2012-06-08 22:26:35 +06:00
qdisc netlink.nlattr re-implemented in more pythonic way 2012-06-08 22:26:35 +06:00
Makefile.am python: Include python/ in distribution and provide a README on how to build & install 2011-08-12 10:45:47 +02:00
__init__.py python interface to netlink protocols 2011-05-10 12:17:33 +02:00
address.py netlink.nlattr re-implemented in more pythonic way 2012-06-08 22:26:35 +06:00
capi.i rtnl_link_(get|set)_weight is deprecated in libnl. 2012-06-08 22:26:35 +06:00
link.py Enabled the use of Links as context managers. 2012-10-04 16:36:55 -04:00
tc.py netlink.nlattr re-implemented in more pythonic way 2012-06-08 22:26:35 +06:00