Skip to content

Commit

Permalink
BugFix: cisco_nxos_show_fex: allow spaces in fex description (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
daanvdsanden authored Mar 10, 2020
1 parent 5054f82 commit 9390d11
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/cisco_nxos_show_fex.textfsm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Value NUMBER (\d+)
Value DESCR (\S+)
Value DESCR ((\S+)(\s+\S+)*)
Value STATE (\S+)
Value MODEL (\S+)
Value SERIAL (\S+)
Expand Down
5 changes: 4 additions & 1 deletion tests/cisco_nxos/show_fex/cisco_nxos_show_fex.raw
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ Number Description State Model Serial
104 ATL1-AS7P Online N2K-C2248TP-E-1GE SSI16340AKE
105 ATL1-AS9P Online N2K-C2248TP-E-1GE SSI16350BJ9
121 ATL1-AS1PR2 Online N2K-C2248TP-E-1GE SSI165102M7
122 ATL1-AS3PR2 Online N2K-C2248TP-E-1GE SSI16460ARS
122 ATL1-AS3PR2 test Online N2K-C2248TP-E-1GE SSI16460ARS
123 ATL1-AS3PR2 test test Online N2K-C2248TP-E-1GE SSI16460AR1
124 ATL1-AS3PR2 Test Online N2K-C2248TP-E-1GE SSI16460AR2
125 ATL1-AS3PR2 Test test Online N2K-C2248TP-E-1GE SSI16460AR3

17 changes: 16 additions & 1 deletion tests/cisco_nxos/show_fex/cisco_nxos_show_fex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,22 @@ parsed_sample:
model: "N2K-C2248TP-E-1GE"
serial: "SSI165102M7"
- number: "122"
descr: "ATL1-AS3PR2"
descr: "ATL1-AS3PR2 test"
state: "Online"
model: "N2K-C2248TP-E-1GE"
serial: "SSI16460ARS"
- number: "123"
descr: "ATL1-AS3PR2 test test"
state: "Online"
model: "N2K-C2248TP-E-1GE"
serial: "SSI16460AR1"
- number: "124"
descr: "ATL1-AS3PR2 Test"
state: "Online"
model: "N2K-C2248TP-E-1GE"
serial: "SSI16460AR2"
- number: "125"
descr: "ATL1-AS3PR2 Test test"
state: "Online"
model: "N2K-C2248TP-E-1GE"
serial: "SSI16460AR3"

0 comments on commit 9390d11

Please sign in to comment.