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

Fix Cisco NXOS display inventory #1206

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 1 addition & 2 deletions ntc_templates/templates/cisco_nxos_show_inventory.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ Start
^NAME:\s+"${NAME}",\s+DESCR:\s+"${DESCR}"
^NAME:\s+${NAME},\s+DESCR:\s+${DESCR}
^PID:\s+${PID}.*,.*VID:\s+${VID}.*SN:\s+${SN} -> Record
^PID:\s+,.*VID:\s+${VID}.*SN: -> Record
^PID:\s+${PID}.*,.*VID:\s+${VID}.*SN: -> Record
^PID:\s+,.*VID:\s+${VID}.*SN:\s+${SN} -> Record
^PID:\s+,.*VID:\s+${VID}.*SN: -> Record
^PID:\s+${PID}.*,.*VID:\s+${VID}.*
^PID:\s+,.*VID:\s+${VID}.*
^.*SN:\s+${SN} -> Record
^.*SN: -> Record

179 changes: 179 additions & 0 deletions tests/cisco_nxos/show_inventory/cisco_nxos_show_inventory2.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
NAME: "Chassis", DESCR: "Nexus9000 93180YC-EX chassis"
PID: N9K-C93180YC-EX , VID: V03 , SN: FDO223607FK

NAME: "Slot 1", DESCR: "48x10/25G + 6x40/100G Ethernet Module"
PID: N9K-C93180YC-EX , VID: V03 , SN: FDO223607FK

NAME: "Power Supply 1", DESCR: "Nexus9000 93180YC-EX chassis Power Supply"
PID: NXA-PAC-650W-PE , VID: V02 , SN: ART2227FNDG

NAME: "Power Supply 2", DESCR: "Nexus9000 93180YC-EX chassis Power Supply"
PID: NXA-PAC-650W-PE , VID: V02 , SN: ART2227FNDR

NAME: "Fan 1", DESCR: "Nexus9000 93180YC-EX chassis Fan Module"
PID: NXA-FAN-30CFM-F , VID: V01 , SN: N/A

NAME: "Fan 2", DESCR: "Nexus9000 93180YC-EX chassis Fan Module"
PID: NXA-FAN-30CFM-F , VID: V01 , SN: N/A

NAME: "Fan 3", DESCR: "Nexus9000 93180YC-EX chassis Fan Module"
PID: NXA-FAN-30CFM-F , VID: V01 , SN: N/A

NAME: "Fan 4", DESCR: "Nexus9000 93180YC-EX chassis Fan Module"
PID: NXA-FAN-30CFM-F , VID: V01 , SN: N/A

NAME: Ethernet1/1, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088868

NAME: Ethernet1/2, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088875

NAME: Ethernet1/3, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088869

NAME: Ethernet1/4, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088877

NAME: Ethernet1/5, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088866

NAME: Ethernet1/6, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088876

NAME: Ethernet1/7, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088867

NAME: Ethernet1/8, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088870

NAME: Ethernet1/9, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088865

NAME: Ethernet1/10, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088872

NAME: Ethernet1/11, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088863

NAME: Ethernet1/12, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088871

NAME: Ethernet1/13, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088864

NAME: Ethernet1/14, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088874

NAME: Ethernet1/15, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088861

NAME: Ethernet1/16, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088873

NAME: Ethernet1/17, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088862

NAME: Ethernet1/18, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088879

NAME: Ethernet1/19, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088860

NAME: Ethernet1/20, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804088878

NAME: Ethernet1/21, DESCR: FS
PID: , VID: SFP-10GSR-85, SN: F1811032996

NAME: Ethernet1/22, DESCR: FS
PID: , VID: SFP-10GSR-85, SN: F1811033037

NAME: Ethernet1/23, DESCR: FS
PID: , VID: SFP-10GSR-85, SN: F1811028643

NAME: Ethernet1/24, DESCR: FS
PID: , VID: SFP-10GSR-85, SN: F1811026706

NAME: Ethernet1/25, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804109689

NAME: Ethernet1/26, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804098192

NAME: Ethernet1/27, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804109688

NAME: Ethernet1/28, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804098190

NAME: Ethernet1/29, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804109685

NAME: Ethernet1/30, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804098218

NAME: Ethernet1/31, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804109687

NAME: Ethernet1/32, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804098193

NAME: Ethernet1/33, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804109684

NAME: Ethernet1/34, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804098194

NAME: Ethernet1/35, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804109686

NAME: Ethernet1/36, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804098195

NAME: Ethernet1/37, DESCR: FS
PID: , VID: SFP-10GSR-85, SN: C2004051466

NAME: Ethernet1/38, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804098196

NAME: Ethernet1/39, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804109683

NAME: Ethernet1/40, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804103664

NAME: Ethernet1/41, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804109681

NAME: Ethernet1/42, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804098198

NAME: Ethernet1/43, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804098197

NAME: Ethernet1/44, DESCR: FiberStore
PID: , VID: SFP-10GSR-85, SN: G1804098199

NAME: Ethernet1/45, DESCR: FS
PID: , VID: SFP-10GSR-85, SN: F1811032804

NAME: Ethernet1/46, DESCR: FS
PID: , VID: SFP-10GSR-85, SN: F1811032154

NAME: Ethernet1/47, DESCR: FS
PID: , VID: SFP-10GSR-85, SN: F1809025918

NAME: Ethernet1/48, DESCR: FS
PID: , VID: SFP-10GSR-85, SN: F1811026574

NAME: Ethernet1/49, DESCR: CISCO-FOIT
PID: QSFP-40/100-SRBD , VID: SFBR-89BDDZ-CS2, SN: FOF2229N3NH

NAME: Ethernet1/50, DESCR: CISCO-FOIT
PID: QSFP-40/100-SRBD , VID: SFBR-89BDDZ-CS2, SN: FOF2229N3NJ

NAME: Ethernet1/53, DESCR: CISCO-AVAGO
PID: QSFP-40G-SR-BD , VID: AFBR-79EBPZ-CS2, SN: AVM2210U0RA

NAME: Ethernet1/54, DESCR: CISCO-AVAGO
PID: QSFP-40G-SR-BD , VID: AFBR-79EBPZ-CS2, SN: AVM2211U2VW
Loading