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.38k stars 234 forks source link

Fallback to local credentials in case of TACACS unavailability #830

Closed mklimkow closed 1 year ago

mklimkow commented 1 year ago

Hi,

I'm trying to build some logic for fallback to local credentials in case of TACACS unavailability. My idea was to use TransformFunction which is working fine with inventory transformation, but I'm unable to connect to the host that previously had failed to authenticate. Does Nornir have some kind of mechanism to omit such hosts in next connection attempts? If so, how to bypass it?

Or maybe there is a better way to achieve my goal?

Best Regards

MK

dbarrosop commented 1 year ago

You have all the information here: https://nornir.readthedocs.io/en/latest/tutorial/failed_tasks.html#Skipped-hosts

mklimkow commented 1 year ago

Thanks, this is exactly what I was looking for.