dect
/
libnl
Archived
13
0
Fork 0
Commit Graph

27 Commits

Author SHA1 Message Date
Michael Braun c76393e203 Add macvlan support
This patch add support for kernel macvlan interfaces.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
2013-05-16 17:04:08 +02:00
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
Коренберг Марк ffa461d37c Fixed memory leak in Cache destructor
destructor of Cache was missing due to typo
2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) dca358c6a2 rtnl_link_(get|set)_weight is deprecated in libnl.
So, remove from python binding. Should not break compatibility.
2012-06-08 22:26:35 +06:00
Коренберг Марк 87d370912c netlink.nlattr re-implemented in more pythonic way 2012-06-08 22:26:35 +06:00
Коренберг Марк 139e3d3203 nl_pickup removed from python binding 2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) 08e8b35d9f Remove unnecessary comments 2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) 482c602b74 Refine some places
No real logick change
2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) 454ea4a5b4 pylint's first review and trivial fixes 2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) 8959d95e22 Using only single quotes now and multi-line lists
Nothing algorithmic changed really, just cosmetics
2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) 83f06bfbb8 Fix indentation (spaces vs tabs)
Now, python files use pseudo-tab equal 4 spaces
2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) fb890a5b5e Code cleanups
1. unused "import struct" removed
2. AddressFamily.__len__ is defined, but why in so way? removed.
3. comparison against instancemethod type fixed
2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) c1547d90d7 Flags properties description and implementation fixed
1. Address, Link and Vlan classes affected with same bug
2. Flags property are not designed as set class. Setting to property will
   not replace flags, just add flags to set. So, jist document that, and
   fixed obvious logick.
2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) 38fefc5c1b Fixed various str-related logick 2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) b369d22f92 Fix whitespaces at EOL
Make git happy with that
2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) 4be1ae2ae2 Introduce Python's absolute_imports
Helps greatly when porting to Python 3
2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) f55ea7ff9d Fix typo in still unused function that generate colored message 2012-06-08 22:26:35 +06:00
Коренберг Марк (ноутбук дома) 1e75bd006b Make syntax highlighters happy
Fix typo in docstring
2012-06-08 22:26:35 +06:00
Коренберг Марк 9d60ef0d59 Removed generated .pyc files from repository 2012-06-08 22:26:34 +06:00
Коренберг Марк (ноутбук дома) bf54d6d03a Fixed address deletion
1. rtnl_addr_delete require three arguments
2. comment fixed (fixed copy-past from link.py)
2012-06-08 22:26:34 +06:00
Thomas Graf 9c7593cc9b python: Link against nl-3 and nl-route-3 2011-10-26 10:54:10 +02:00
Thomas Graf 23333e5e35 python: Include python/ in distribution and provide a README on how to build & install 2011-08-12 10:45:47 +02:00
Thomas Graf 20e9797652 use rtnl_link_set/get_type() 2011-07-21 17:52:43 +02:00
Thomas Graf bf1b5d28c0 removed autogenerated swig interface files from git tree 2011-07-21 17:49:21 +02:00
Thomas Graf 49d29e9c2d ignore python build directory 2011-07-21 16:41:45 +02:00
Thomas Graf e56eb065b2 Work on libnl-python
Changes too numerous to describe them
2011-06-10 13:55:29 +02:00
Thomas Graf f443be6e74 python interface to netlink protocols
currently includes experimental support for links, addresses
and some traffic control
2011-05-10 12:17:33 +02:00