netmiko icon indicating copy to clipboard operation
netmiko copied to clipboard

introduces `raise_on_parsing_error` parameter to `send_command`

Open Kircheneer opened this issue 11 months ago • 2 comments

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 avatar Mar 20 '24 10:03 Kircheneer

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

Kircheneer avatar Mar 21 '24 07:03 Kircheneer

Please approve CI workflow whenever possible. Thanks!

Kircheneer avatar Mar 21 '24 07:03 Kircheneer

Looks to fix https://github.com/ktbyers/netmiko/issues/3479

tom0010 avatar Aug 20 '24 14:08 tom0010

Superseded by https://github.com/ktbyers/netmiko/pull/3494

ktbyers avatar Sep 03 '24 21:09 ktbyers