[strongSwan] vici/python interface errors
Volodymyr Litovka
doka.ua at gmx.com
Tue Dec 3 20:25:13 CET 2019
Great, Tobias,
thanks!
On 03.12.2019 14:10, Tobias Brunner wrote:
> 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
--
Volodymyr Litovka
"Vision without Execution is Hallucination." -- Thomas Edison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20191203/d1b37a70/attachment-0001.html>
More information about the Users
mailing list