[PATCH] Fixed ObjIterator for python3, fixed output of _color and added missing parameter to nl_cache_resync

Teto mattator at gmail.com
Wed Oct 2 16:18:31 EDT 2013


Hi,

I have gotten more interested in the python binding lately (I've
enough of those overly complex bash scripts just to setup some routes)

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

Best regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-Fixed-ObjIterator-for-python3-fixed-_color-format-re.patch
Type: application/octet-stream
Size: 2149 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20131002/21ea374d/attachment.obj>


More information about the libnl mailing list