[strongSwan] vici/python interface errors

Tobias Brunner tobias at strongswan.org
Tue Dec 3 13:10:22 CET 2019


Hi Volodymyr,

> Processing starts only upon iterating of "t". This is every-time
> reproduceable behaviour.

That's because terminate() (and any other command wrapper that uses
streamed_request()) returns a Python generator, which is only evaluated
once you enumerate it.  If you are not interested in log messages (in
particular with timeout set to -1, in which case none will be returned
anyway) you could also send the request directly with

    v.request('terminate', {
        'ike-id': ike_id,
        'timeout': ...
    })

Regards,
Tobias


More information about the Users mailing list