Handling Time out exceptions #140
Replies: 4 comments 4 replies
-
Seems reasonable, and yes, in extras. Like here: https://github.com/scrapli/nornir_scrapli/blob/main/examples/basic_netconf_usage/nornir_data/groups.yaml#L7-L9 you can pass whatever valid scrapli args in extras. |
Beta Was this translation helpful? Give feedback.
-
Carl, |
Beta Was this translation helpful? Give feedback.
-
Scrapli and Nornir attached. It seems to be connecting to the switch.. which is an CSR1, but it is only reading \n which is next lines.....? |
Beta Was this translation helpful? Give feedback.
-
Carl, |
Beta Was this translation helpful? Give feedback.
-
I am experiencing time out issues with nornir-scrapli while using jinja templates. I have a script that loads in variables from a yaml file, renders a template using jinja2, and send the config to a device using nornir-scrapli. The first two tasks are working well, however the last task is not. I am receiving the Scrapli Timeoute error. After much reasearch, I think I need to do the following: leave the timeout_socket alone, set timeout_transport to 0, then just set timeout_ops to however long it takes for your longest output to print out on the terminal. The problem is that I do not know how to set these options in nornir. Is it done in the extras field on the hosts.yaml file?
I have attached screenshots of the hosts.yaml file, script, and the terminal. Also, I have attached the Nornir log file.
nornir.log
Thank you in advance for your help.
Rashaan
Beta Was this translation helpful? Give feedback.
All reactions