8195cd818cf45ab2ddd754749c1d1d612b9a8710
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>
os-ken
A component-based software defined networking framework in OpenStack.
This is a fork of the Ryu library tailored for OpenStack Neutron.
- License: Apache License, Version 2.0
- Documentation: https://docs.openstack.org/os-ken/latest/
- Source: https://opendev.org/openstack/os-ken/
- Bugs: https://storyboard.openstack.org/#!/project/openstack/os-ken
- Release Notes: https://docs.openstack.org/releasenotes/os-ken
Description
Languages
Python
86.1%
Erlang
13.3%
C
0.4%
Shell
0.2%