nornir-automation / nornir

Pluggable multi-threaded framework with inventory management to help operate collections of devices
https://nornir.readthedocs.io/
Apache License 2.0
1.37k stars 233 forks source link

Proposal to support Async inventory #882

Open dgarros opened 9 months ago

dgarros commented 9 months ago

Related to #880

This PR is an example of implementation of how Nornir could support both sync and async inventory without much effort and without having to duplicate the code.

The main idea is to have the main code written in Async and wrap these functions with asyncio.run to also support non async execution.