Skip to content

Commit

Permalink
Added template support for cisco_fxos show system firmware (#1967)
Browse files Browse the repository at this point in the history
Co-authored-by: Zachery Lantz <[email protected]>
Co-authored-by: Michael Bear <[email protected]>
3 people authored Jan 13, 2025

Verified

This commit was signed with the committer’s verified signature.
cnasikas Christos Nasikas
1 parent 784e3fa commit cecf1ea
Showing 5 changed files with 16 additions and 0 deletions.
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
2 changes: 2 additions & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
@@ -242,6 +242,8 @@ cisco_asa_dir.textfsm, .*, cisco_asa, dir

cisco_ftd_show_vpn-sessiondb_anyconnect.textfsm, .*, cisco_ftd, sh[[ow]] vpn-[[sessiondb]] a[[nyconnect]]

cisco_fxos_show_system_firmware.textfsm, .*, cisco_fxos, sh[[ow]] sy[[stem]] fi[[rmware]]

cisco_ios_show_module.textfsm:cisco_ios_show_module_status.textfsm:cisco_ios_show_module_submodule.textfsm:cisco_ios_show_module_online_diag.textfsm, .*, cisco_ios, sh[[ow]] mod[[ule]]
cisco_ios_show_switch_detail.textfsm:cisco_ios_show_switch_detail_stack_ports.textfsm, .*, cisco_ios, sh[[ow]] sw[[itch]] d[[etail]]
cisco_ios_show_authentication_sessions_method_details.textfsm, .*, cisco_ios, show authen[[tication]] ses[[sions]] met[[hod]](\s+d[[ot1x]]|\s+m[[ab]])? det[[ails]]
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)
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)"
1 change: 1 addition & 0 deletions tests/test_index_order.py
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",

0 comments on commit cecf1ea

Please sign in to comment.