forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cisco nxos show switching-mode (networktocode#1568)
* Added new template for cisco nxos show switching-mode.
- Loading branch information
1 parent
d1a85ba
commit e750b6c
Showing
8 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
ntc_templates/templates/cisco_nxos_show_switching-mode.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,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 |
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
4 changes: 4 additions & 0 deletions
4
tests/cisco_nxos/show_switching-mode/cisco_nxos_show_switching-mode_1.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,4 @@ | ||
Configured switching mode: Cut through | ||
|
||
Module Number Operational Mode | ||
1 Cut-Through |
5 changes: 5 additions & 0 deletions
5
tests/cisco_nxos/show_switching-mode/cisco_nxos_show_switching-mode_1.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,5 @@ | ||
--- | ||
parsed_sample: | ||
- configured_switching_mode: "Cut through" | ||
module_number: "1" | ||
operational_mode: "Cut-Through" |
4 changes: 4 additions & 0 deletions
4
tests/cisco_nxos/show_switching-mode/cisco_nxos_show_switching-mode_2.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,4 @@ | ||
Configured switching mode: Store and Forward | ||
|
||
Module Number Operational Mode | ||
1 Store and Forward |
5 changes: 5 additions & 0 deletions
5
tests/cisco_nxos/show_switching-mode/cisco_nxos_show_switching-mode_2.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,5 @@ | ||
--- | ||
parsed_sample: | ||
- configured_switching_mode: "Store and Forward" | ||
module_number: "1" | ||
operational_mode: "Store and Forward" |
5 changes: 5 additions & 0 deletions
5
tests/cisco_nxos/show_switching-mode/cisco_nxos_show_switching-mode_3.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,5 @@ | ||
Configured switching mode: Store and Forward | ||
|
||
Module Number Operational Mode | ||
1 Store and Forward | ||
2 Cut-Through |
8 changes: 8 additions & 0 deletions
8
tests/cisco_nxos/show_switching-mode/cisco_nxos_show_switching-mode_3.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,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" |