summaryrefslogtreecommitdiff
path: root/python
Commit message (Collapse)AuthorAgeFilesLines
* Enabled the use of Links as context managers.Antoni S. Puimedon2012-10-041-0/+9
| | | | | | | | | | | | | | | | | 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
* Fixed memory leak in Cache destructorКоренберг Марк2012-06-081-1/+1
| | | | destructor of Cache was missing due to typo
* rtnl_link_(get|set)_weight is deprecated in libnl.Коренберг Марк (ноутбук дома)2012-06-082-21/+0
| | | | So, remove from python binding. Should not break compatibility.
* netlink.nlattr re-implemented in more pythonic wayКоренберг Марк2012-06-088-116/+66
|
* nl_pickup removed from python bindingКоренберг Марк2012-06-081-5/+0
|
* Remove unnecessary commentsКоренберг Марк (ноутбук дома)2012-06-086-186/+0
|
* Refine some placesКоренберг Марк (ноутбук дома)2012-06-082-19/+20
| | | | No real logick change
* pylint's first review and trivial fixesКоренберг Марк (ноутбук дома)2012-06-088-91/+105
|
* Using only single quotes now and multi-line listsКоренберг Марк (ноутбук дома)2012-06-087-41/+59
| | | | Nothing algorithmic changed really, just cosmetics
* Fix indentation (spaces vs tabs)Коренберг Марк (ноутбук дома)2012-06-089-2192/+2192
| | | | Now, python files use pseudo-tab equal 4 spaces
* Code cleanupsКоренберг Марк (ноутбук дома)2012-06-082-8/+2
| | | | | | 1. unused "import struct" removed 2. AddressFamily.__len__ is defined, but why in so way? removed. 3. comparison against instancemethod type fixed
* Flags properties description and implementation fixedКоренберг Марк (ноутбук дома)2012-06-083-9/+42
| | | | | | | 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.
* Fixed various str-related logickКоренберг Марк (ноутбук дома)2012-06-085-10/+10
|
* Fix whitespaces at EOLКоренберг Марк (ноутбук дома)2012-06-087-27/+27
| | | | Make git happy with that
* Introduce Python's absolute_importsКоренберг Марк (ноутбук дома)2012-06-089-31/+47
| | | | Helps greatly when porting to Python 3
* Fix typo in still unused function that generate colored messageКоренберг Марк (ноутбук дома)2012-06-081-1/+1
|
* Make syntax highlighters happyКоренберг Марк (ноутбук дома)2012-06-081-1/+1
| | | | Fix typo in docstring
* Removed generated .pyc files from repositoryКоренберг Марк2012-06-083-0/+0
|
* Fixed address deletionКоренберг Марк (ноутбук дома)2012-06-081-3/+3
| | | | | 1. rtnl_addr_delete require three arguments 2. comment fixed (fixed copy-past from link.py)
* python: Link against nl-3 and nl-route-3Thomas Graf2011-10-261-2/+2
|
* python: Include python/ in distribution and provide a README on how to build ↵Thomas Graf2011-08-126-1/+41
| | | | & install
* use rtnl_link_set/get_type()Thomas Graf2011-07-213-4/+6
|
* removed autogenerated swig interface files from git treeThomas Graf2011-07-214-20757/+0
|
* ignore python build directoryThomas Graf2011-07-211-0/+1
|
* Work on libnl-pythonThomas Graf2011-06-1020-324/+21478
| | | | Changes too numerous to describe them
* python interface to netlink protocolsThomas Graf2011-05-1021-0/+3985
currently includes experimental support for links, addresses and some traffic control