Skip to content

Commit

Permalink
Add cisco nxos show switching-mode (networktocode#1568)
Browse files Browse the repository at this point in the history
* Added new template for cisco nxos show switching-mode.
  • Loading branch information
nsnelson402 authored and mjbear committed Jan 7, 2024
1 parent d1a85ba commit e750b6c
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ntc_templates/templates/cisco_nxos_show_switching-mode.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Value Filldown CONFIGURED_SWITCHING_MODE ([\S\s]+?)
Value Required MODULE_NUMBER (\S+)
Value Required OPERATIONAL_MODE ([\S\s]+?)

Start
^\s*Configured\s*switching\s*mode:\s*${CONFIGURED_SWITCHING_MODE}\s*$$
^\s*Module\s*Number\s*Operational\s*Mode\s*$$
^\s*${MODULE_NUMBER}\s*${OPERATIONAL_MODE}\s*$$ -> Record
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ cisco_nxos_show_interface_brief.textfsm, .*, cisco_nxos, sh[[ow]] int[[erface]]
cisco_nxos_show_flogi_database.textfsm, .*, cisco_nxos, sh[[ow]] fl[[ogi]] d[[atabase]]
cisco_nxos_show_ip_bgp_summary.textfsm, .*, cisco_nxos, sh[[ow]] ip b[[gp]] s[[ummary]]
cisco_nxos_show_lldp_neighbors.textfsm, .*, cisco_nxos, sh[[ow]] ll[[dp]] nei[[ghbors]]
cisco_nxos_show_switching-mode.textfsm, .*, cisco_nxos, sh[[ow]] switchi[[ng-mode]]
cisco_nxos_show_cdp_neighbors.textfsm, .*, cisco_nxos, sh[[ow]] cd[[p]] neig[[hbors]]
cisco_nxos_show_ip_arp_detail.textfsm, .*, cisco_nxos, sh[[ow]] i[[p]] a[[rp]] det[[ail]]
cisco_nxos_show_license_usage.textfsm, .*, cisco_nxos, sh[[ow]] lic[[ense]] us[[age]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Configured switching mode: Cut through

Module Number Operational Mode
1 Cut-Through
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
parsed_sample:
- configured_switching_mode: "Cut through"
module_number: "1"
operational_mode: "Cut-Through"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Configured switching mode: Store and Forward

Module Number Operational Mode
1 Store and Forward
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
parsed_sample:
- configured_switching_mode: "Store and Forward"
module_number: "1"
operational_mode: "Store and Forward"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Configured switching mode: Store and Forward

Module Number Operational Mode
1 Store and Forward
2 Cut-Through
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
parsed_sample:
- configured_switching_mode: "Store and Forward"
module_number: "1"
operational_mode: "Store and Forward"
- configured_switching_mode: "Store and Forward"
module_number: "2"
operational_mode: "Cut-Through"

0 comments on commit e750b6c

Please sign in to comment.