ktbyers / netmiko

Multi-vendor library to simplify Paramiko SSH connections to network devices
MIT License
3.49k stars 1.26k forks source link

introduces `raise_on_parsing_error` parameter to `send_command` #3406

Open Kircheneer opened 3 months ago

Kircheneer commented 3 months ago

Allow exceptions from structured data parsers to bubble up to the callers of send_command and send_command_timing. This is useful for example in conjunction with nornir_netmiko, which currently can't fail tasks based on failed parsing, leading to successful tasks with garbage data.

Kircheneer commented 3 months ago

As discussed on Slack I have renamed the parameter and added an initial set of tests.

Kircheneer commented 3 months ago

Please approve CI workflow whenever possible. Thanks!