I have many send methods (simple and multiline) used at various places for various reasons. This is not elegant way to capture output at each and every send command to check common errors which may response from device. When ever device responses if any of these common errors (strings), an exception must be raised.
How can we handle this situation ?
Setup
Netmiko version
(Paste verbatim output from pip freeze | grep netmiko between quotes below)
netmiko==4.3.0
Netmiko device_type (if relevant to the issue)
(Paste device_type between quotes below)
a new device added
Steps to Reproduce the Issue
Error Traceback
(Paste the complete traceback of the exception between quotes below)
Relevant Python code
(Please try to essentialize your Python code to the minimum code needed to reproduce the issue)
(Paste the code between the quotes below)
Description of Issue/Question
I have many send methods (simple and multiline) used at various places for various reasons. This is not elegant way to capture output at each and every send command to check common errors which may response from device. When ever device responses if any of these common errors (strings), an exception must be raised.
How can we handle this situation ?
Setup
Netmiko version
(Paste verbatim output from
pip freeze | grep netmiko
between quotes below)Netmiko device_type (if relevant to the issue)
(Paste
device_type
between quotes below)Steps to Reproduce the Issue
Error Traceback
(Paste the complete traceback of the exception between quotes below)
Relevant Python code
(Please try to essentialize your Python code to the minimum code needed to reproduce the issue) (Paste the code between the quotes below)