Changed Cisco NXOS show interface transceiver command parser to fix error with vendor ID #1614
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The parsing of a Nexus3500 C3548P-10GX version 7.0(3)I7(7) failed with the error below:
This change will fix this issue, but also add two new fields "status" and "product_id".
The "status" field can not only be used to determine if a transceiver is present or not, but also if the port does support transceivers or not("not applicable"). This can help to identify fixed copper ports on Fabric extenders or 1/10GBaseT ports on Nexus 9k. This change will produce more results as no item was generated when an SFP was not present, but that could easily be sorted out by matching on the value for the status.
The "product_id" field is helpful to get a Cisco like Part ID for a non Cisco transceiver like in the examples below.