Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cisco_ios_show_platform, only for switches #1892

Merged
merged 15 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ntc_templates/templates/cisco_ios_show_platform.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Value INDEX (\d+)
Value PORTS (\d+)
Value MODEL (\S+)
Value SERIAL (\S+)
Value MAC (\S+)
Value HW_VER (\S+)
Value SW_VER (\d+\.\d+\.\d+)
Uncle-Dee marked this conversation as resolved.
Show resolved Hide resolved

Start
^Switch.*
Uncle-Dee marked this conversation as resolved.
Show resolved Hide resolved
^--.*
Uncle-Dee marked this conversation as resolved.
Show resolved Hide resolved
^\s${INDEX}\s+${PORTS}\s+${MODEL}\s+${SERIAL}\s+${MAC}\s+${HW_VER}\s+${SW_VER}
Uncle-Dee marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ cisco_ios_show_cdp_neighbors.textfsm, .*, cisco_ios, sh[[ow]] c[[dp]] neig[[hbor
cisco_ios_show_controller_t1.textfsm, .*, cisco_ios, sh[[ow]] cont[[rollers]] t1
cisco_ios_show_hosts_summary.textfsm, .*, cisco_ios, sh[[ow]] ho[[sts]] summary
cisco_ios_show_ip_cef_detail.textfsm, .*, cisco_ios, sh[[ow]] ip ce[[f]].+?d[[etail]]
cisco_ios_show_platform.textfsm, .*, cisco_ios, sh[[ow]] plat[[form]]
Uncle-Dee marked this conversation as resolved.
Show resolved Hide resolved
cisco_ios_show_platform_diag.textfsm, .*, cisco_ios, sh[[ow]] plat[[form]] di[[ag]]
cisco_ios_show_processes_cpu.textfsm, .*, cisco_ios, sh[[ow]] proc[[esses]] [[cpu]]
cisco_ios_show_spanning-tree.textfsm, .*, cisco_ios, sh[[ow]] sp[[anning-tree]]
Expand Down