Skip to content

Commit cecf1ea

Browse files
manofcolombiaZachery Lantzmjbear
authored
Added template support for cisco_fxos show system firmware (#1967)
Co-authored-by: Zachery Lantz <zlantz@liberty.edu> Co-authored-by: Michael Bear <38406045+mjbear@users.noreply.github.com>
1 parent 784e3fa commit cecf1ea

5 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Value VERSION (\S+)
2+
Value STARTUP_VERSION (\S+)
3+
4+
Start
5+
^\s*Version:\s+${VERSION}\s*$$
6+
^\s*Startup-Vers:\s+${STARTUP_VERSION}\s*$$
7+
^. -> Error

ntc_templates/templates/index

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ cisco_asa_dir.textfsm, .*, cisco_asa, dir
242242

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

245+
cisco_fxos_show_system_firmware.textfsm, .*, cisco_fxos, sh[[ow]] sy[[stem]] fi[[rmware]]
246+
245247
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]]
246248
cisco_ios_show_switch_detail.textfsm:cisco_ios_show_switch_detail_stack_ports.textfsm, .*, cisco_ios, sh[[ow]] sw[[itch]] d[[etail]]
247249
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]]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Version: 2.16(0.128)
2+
Startup-Vers: 2.16(0.128)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
parsed_sample:
3+
- startup_version: "2.16(0.128)"
4+
version: "2.16(0.128)"

tests/test_index_order.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"cisco_apic",
2727
"cisco_asa",
2828
"cisco_ftd",
29+
"cisco_fxos",
2930
"cisco_ios",
3031
"cisco_nvfis",
3132
"cisco_nxos",

0 commit comments

Comments
 (0)