forked from ktbyers/netmiko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add argument to send_command and send_command_timing to support raisi…
…ng exception for parsers (ktbyers#3494) * introduces `raise_parsing_error` parameter to `send_command` 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. * Updates to make raise_parsing_error more ubiquitous across TTP/genie/TextFSM; additional tests --------- Co-authored-by: Leo Kirchner <[email protected]>
- Loading branch information
1 parent
92ca035
commit 4599c4d
Showing
5 changed files
with
248 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
interface {{ intf_name }} | ||
description {{ description | ORPHRASE}} |
Oops, something went wrong.