It would be great - on create/initial phase - to check if the galaxy collections or python modules required to operate a device are installed.
We could add, on the device definition, a list of modules and galaxy collection to check, and perform the checks when creating the topology data (or, in general, before starting the devices).
For galaxy collections, the "machine friendly" list of installed collections could be obtained with:
ansible-galaxy collection list --format json
Python modules can be imported inside a try-except block.
It would be great - on create/initial phase - to check if the galaxy collections or python modules required to operate a device are installed.
We could add, on the device definition, a list of modules and galaxy collection to check, and perform the checks when creating the topology data (or, in general, before starting the devices).
For galaxy collections, the "machine friendly" list of installed collections could be obtained with:
Python modules can be imported inside a try-except block.