-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Added template support for cisco_fxos show system firmware (#1967)
Co-authored-by: Zachery Lantz <[email protected]> Co-authored-by: Michael Bear <[email protected]>
1 parent
784e3fa
commit cecf1ea
Showing
5 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
ntc_templates/templates/cisco_fxos_show_system_firmware.textfsm
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,7 @@ | ||
Value VERSION (\S+) | ||
Value STARTUP_VERSION (\S+) | ||
|
||
Start | ||
^\s*Version:\s+${VERSION}\s*$$ | ||
^\s*Startup-Vers:\s+${STARTUP_VERSION}\s*$$ | ||
^. -> Error |
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
2 changes: 2 additions & 0 deletions
2
tests/cisco_fxos/show_system_firmware/cisco_fxos_show_system_firmware.raw
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 @@ | ||
Version: 2.16(0.128) | ||
Startup-Vers: 2.16(0.128) |
4 changes: 4 additions & 0 deletions
4
tests/cisco_fxos/show_system_firmware/cisco_fxos_show_system_firmware.yml
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,4 @@ | ||
--- | ||
parsed_sample: | ||
- startup_version: "2.16(0.128)" | ||
version: "2.16(0.128)" |
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 |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
"cisco_apic", | ||
"cisco_asa", | ||
"cisco_ftd", | ||
"cisco_fxos", | ||
"cisco_ios", | ||
"cisco_nvfis", | ||
"cisco_nxos", | ||
|