Teto
a4e588d04a
Fixed ObjIterator for python3, fixed output of _color and added missing parameter to nl_cache_resync
...
Here are a few things I fixed and that provoked a python error.
I canno't answer to this thread but one solution I found while using
the python binding is to iterate over all and filter via python
http://list-archives.org/2013/09/09/libnl-lists-infradead-org/missing-feature-for-retrieving-cached-
address-objects/f/5031600704
Example:
cache = nlrta.AddressCache()
cache.resync()
for i in cache:
print ("item", i ) # then you can filter here
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-10-07 09:52:08 +02:00
Коренберг Марк
87d370912c
netlink.nlattr re-implemented in more pythonic way
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
Коренберг Марк (ноутбук дома)
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
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