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

Thomas Graf tgraf at suug.ch
Mon Oct 7 03:54:32 EDT 2013


On 10/02/13 at 10:18pm, Teto wrote:
> 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

Applied, thanks.

Please submit these changes as individual patches next time for easier
review.



More information about the libnl mailing list