Go to file
Brian Haley 8195cd818c Fix a few eventlet leftovers in the code
There were still a couple of places where the threading
code was using eventlet. Cleaned them up along with some
other test issues noticed during debugging.

Add a definition for cancel() to HubThread class in
native code as it is called when threads are stopped in
the BGP peer code.

Use hub.kill(thread) to kill threads instead of
thread.kill() as it will use hub-specific logic.

Add a stop() method to BGP Peer class so users can stop
any threads that might have been started in __init__(),
like the periodic stats logger.

Do not use eventlet to spawn threads in BGP code, always
use self._spawn() which uses hub-specific code.

Use hub.Semaphore class in bgp/speaker.py which uses the
hub-specific semaphore code.

Change BGP peer "looped" tests to not enable the periodic
stats logging thread since it is unnecessary, and
would require a call to the class stop() method on exit.

Related-bug: #2087939
Change-Id: Ib2a1e12a2d5d25ede1cc1678d23e88ceae822b31
Signed-off-by: Brian Haley <haleyb.dev@gmail.com>
2025-10-31 15:18:01 -04:00
2025-09-01 09:43:01 +02:00
2024-05-06 12:37:04 +02:00
2022-07-21 16:02:02 +02:00
2019-04-19 19:48:36 +00:00
2018-09-04 17:00:24 +00:00
2024-06-28 07:33:22 +00:00
2018-09-04 17:00:24 +00:00
2020-07-08 14:08:19 +02:00
2025-10-03 01:59:37 +09:00
2023-08-17 09:58:21 +00:00
2024-02-02 23:57:41 +09:00

os-ken

A component-based software defined networking framework in OpenStack.

This is a fork of the Ryu library tailored for OpenStack Neutron.

Description
A component-based software defined networking framework for OpenStack.
Readme 10 MiB
Languages
Python 86.1%
Erlang 13.3%
C 0.4%
Shell 0.2%