Skip to content

Commit

Permalink
Support Nexus 7k output again (#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbear authored Feb 11, 2025
1 parent 5075287 commit 2d15142
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Value PART_NUMBER (\S+)
Value PRODUCT_ID (\S+)

Start
^\S+/\S+ -> Continue.Record
^${INTERFACE}
^\s+transceiver\sis\s+${STATUS}
^\s+type\s+is(\s+${TYPE})?
Expand All @@ -24,5 +25,4 @@ Start
^\s+cisco\s+product\s+id\sis(\s+${PRODUCT_ID})?
^\s+cisco\s+version\s+id
^\s+cisco\s+vendor\s+id
^\s*$$ -> Record
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Ethernet3/1
transceiver is not present
Ethernet3/2
transceiver is present
type is 1000base-SX
name is CISCO-FINISAR
part number is FTRJ8519P1BNL-C4
revision is A
serial number is FNS1009J3MT
nominal bitrate is 2100 MBit/sec
cisco id is 3
cisco extended id number is 4
Ethernet3/3
transceiver is present
type is 1000base-SX
name is CISCO
part number is SFBR-5716PZ
revision is 001
serial number is AGJ1945R416
nominal bitrate is 1300 MBit/sec
cisco id is 3
cisco extended id number is 4
cisco part number is 10-2626-01
cisco product id is GLC-SX-MMD
cisco vendor id is V01
Ethernet3/4
transceiver is present
type is 1000base-SX
name is CISCO
part number is SFBR-5716PZ
revision is 001
serial number is AGJ1945R41D
nominal bitrate is 1300 MBit/sec
cisco id is 3
cisco extended id number is 4
cisco part number is 10-2626-01
cisco product id is GLC-SX-MMD
cisco vendor id is V01
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
parsed_sample:
- interface: "Ethernet3/1"
manufacturer: ""
part_number: ""
product_id: ""
serial: ""
status: "not present"
type: ""
- interface: "Ethernet3/2"
manufacturer: "CISCO-FINISAR"
part_number: "FTRJ8519P1BNL-C4"
product_id: ""
serial: "FNS1009J3MT"
status: "present"
type: "1000base-SX"
- interface: "Ethernet3/3"
manufacturer: "CISCO"
part_number: "SFBR-5716PZ"
product_id: "GLC-SX-MMD"
serial: "AGJ1945R416"
status: "present"
type: "1000base-SX"
- interface: "Ethernet3/4"
manufacturer: "CISCO"
part_number: "SFBR-5716PZ"
product_id: "GLC-SX-MMD"
serial: "AGJ1945R41D"
status: "present"
type: "1000base-SX"

0 comments on commit 2d15142

Please sign in to comment.