-
Notifications
You must be signed in to change notification settings - Fork 746
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
cisco_nxos_show_interface_transceiver.textfsm Not parsing without spaces between interfaces. #2017
Comments
I see what you're pointing out. |
@Mikeg2881 |
Digging into this... Returns a space between every line
Returns a space ONLY after interfaces with no transceivers
|
Appreciated. Seems like there's two instances of 7k output, one with a blank space after "no transceivers" and another without the blank line. That can be supported either way. 🙂 Ok, so the Nexus 5k and 9k behave one way and the Nexus 7k seems to be the outlier. I worked up PR #2018 to fix this. |
It appears NX-OS will return this (show interface transceiver) command different depending on Model/Version
Sometimes its 1 continuous line of text. Sometimes there is a space before every "Ethernet" Line. The module seems to work only if there is a space between the lines.
ntc_templates 7.6.0 (Upgraded to 7.7.0 and still have this error)
Sample show command output that works
The output from the Parsing is:
[{'interface': 'Ethernet3/1', 'status': 'not present', 'manufacturer': '', 'type': '', 'serial': '', 'part_number': '', 'product_id': ''}, {'interface': 'Ethernet3/2', 'status': 'present', 'manufacturer': 'CISCO-FINISAR', 'type': '1000base-SX', 'serial': 'FNS1009J3MT', 'part_number': 'FTRJ8519P1BNL-C4', 'product_id': ''}, {'interface': 'Ethernet3/3', 'status': 'present', 'manufacturer': 'CISCO', 'type': '1000base-SX', 'serial': 'AGJ1945R416', 'part_number': 'SFBR-5716PZ', 'product_id': 'GLC-SX-MMD'}, {'interface': 'Ethernet3/4', 'status': 'present', 'manufacturer': 'CISCO', 'type': '1000base-SX', 'serial': 'AGJ1945R41D', 'part_number': 'SFBR-5716PZ', 'product_id': 'GLC-SX-MMD'}]
Sample show command output that doesn't work
The output from the Parsing is:
[{'interface': 'Ethernet3/4', 'status': 'present', 'manufacturer': 'CISCO', 'type': '1000base-SX', 'serial': 'AGJ1945R41D', 'part_number': 'SFBR-5716PZ', 'product_id': 'GLC-SX-MMD'}]
Code to reproduce:
The text was updated successfully, but these errors were encountered: