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

Support Nexus 7k interface transceiver output again #2018

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
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"