Hello Everyone, i just started looking into nornir today and am stuck with trying to have a function do multiple show commands per task, i know this is not correct but hopefully you guys can get the idea of what i am aiming at:
# creating function to do multiple show commands
def show_commands(task: Task) → Result:
name=“Show device versions”,
task=(napalm_cli, commands=[‘show version’])
name=“Show device interfaces”,
task=(napalm_cli, commands=[‘show interfaces’])
result = nr.run(
Any ideas on how to get something like this? Thank you!
Found a way!
def get_facts(task: Task) → Result:
facts = task.run(