]> git.ipfire.org Git - thirdparty/strongswan.git/commit
vici: Provide a way to stop listening and re-connect in Python bindings
authorTobias Brunner <tobias@strongswan.org>
Fri, 3 Oct 2025 08:59:03 +0000 (10:59 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 3 Oct 2025 09:43:33 +0000 (11:43 +0200)
commitb062b35d928a8c213bef80f82505bdf30b93a7e6
tree88aee999f6254cd5cae35ca0b99c63d4bc83c7cd
parent1723ff72632e1c5e0605ca162e14036a90bfc44d
vici: Provide a way to stop listening and re-connect in Python bindings

This allows re-connecting to a new session in a disconnect listener and
continue listening without having to return from listen().  The exception
can also be used to stop listening after some condition (e.g. to wait
until a specific SA got created and then stop).
src/libcharon/plugins/vici/python/vici/__init__.py
src/libcharon/plugins/vici/python/vici/event_listener.py