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