821362d9b3de0b9440975b30ddd4b0fbebbe8b5c
TimedOnetimeEvent` for auto-expiring OVSDB watchers
Add a new ``TimedOnetimeEvent`` class that extends ovsdbapp's ``RowEvent`` with two guarantees: the event fires at most once (``ONETIME = True``), and if it does not match within a configurable timeout it is automatically unwatched from the event handler via a daemon ``threading.Timer``. This is useful for transient watchers that should not remain registered indefinitely if the expected DB change never arrives (e.g. waiting for a port to appear on a bridge). Related-Bug: #2158253 Assisted-By: Claude Opus 4.6 Signed-off-by: Rodolfo Alonso Hernandez <ralonsoh@redhat.com> Change-Id: Ic4f8a3e5b7d1a9e0f2c6b4d8a1e3f5c7d9b2a4e6
OpenStack Neutron
Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).
To learn more about neutron:
- Documentation: https://docs.openstack.org/neutron/latest/
- Features: https://specs.openstack.org/openstack/neutron-specs
- Defects: https://launchpad.net/neutron
- Release notes: https://docs.openstack.org/releasenotes/neutron/index.html
- Source: https://opendev.org/openstack/neutron
If you would like to contribute to Neutron, please read the file CONTRIBUTING.rst or see the Neutron contributor guide:
https://docs.openstack.org/neutron/latest/contributor/contributing.html
Get in touch via email. Use [Neutron] in your subject.
Languages
Python
99.6%
Shell
0.4%