Current Series Release Notes¶
5.0.0¶
Upgrade Notes¶
ncclientis no longer a mandatory dependency. It is only needed by the OF-Config library (os_ken.lib.of_config); install it with theof-configextra, e.g.pip install os-ken[of-config].
Support for
eventlethas been removed fromos_ken.lib.huband the BGP speaker’s internal utilities.nativethreading (based on the Python standard library) is now the only supported hub implementation. TheOSKEN_HUB_TYPEenvironment variable and theeventletdependency are no longer used.
Bug Fixes¶
With the native hub,
hub.getcurrent()returns the current thread. It raisedTypeError,getcurrentbeing the thread that imported the hub instead of a function.
With the native hub, the thread returned by
hub.spawn_after()has await()method, as the ones returned byhub.spawn()and by the eventlet hub.
With the native hub, an exception raised by an event handler no longer ends the event loop of its application without being logged. It is logged, and the application keeps handling events, as with eventlet.
Fix a race in native-threaded switch-features processing that could terminate the OfctlService event loop and leave subsequent requests waiting indefinitely. Use the datapath ID from the received features reply without relying on another thread to initialize the shared datapath object first.