Closed HaiderNL closed 11 months ago
Your function here:
def fn1(x):
for c in f1:
x.run(
task = netmiko_send_command,
command_string = c
)
return agg_result
Is trying to return a variable named agg_result
, but that variable doesn't exist (i.e. you haven't defined it anywhere).,
Oh, I thought "agg_result = nr.run(task=fn1) " would be sufficient. Well then, I'm going to play around with till it's fixed.
Hi, The std_print() does give an output but not properly. It says agg_result is not defined. But it is already defined. Any idea what's wrong with the code ?