-
Notifications
You must be signed in to change notification settings - Fork 735
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
Update cisco_nxos_show_interface_status.template #370
Conversation
In NXOS 7.0.3.I7.5a there is a separate section with column names for the mgmt0 interface. This caused a "textfsm.TextFSMError" when the column name section appeared for the second time. This update fixes the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Pluppo can you please provide new, or update the existing test files to include this data? We would like to ensure this data is accounted for in any future modifications to the template. Thanks!
Hi, I just added two new test files: Let me know if you need me to do anything else. |
@Pluppo looking at this now with the raw data, I think it would be better just to remove the state change, and put all of the matching under |
@jmcgill298 I'm sorry, but I'm not sure what you mean. My apologies, I'm quite new in dealing with Github and code collaboration. I tried moving the The reason for this change is that in newer versions of nxos, there is a separate title section for the "mgmt0" interface, and a second title section for the remaining interfaces. Without telling the template to ignore the second occurrence of the title section, the following error appears: If you don't mind giving me an example of the code you think would be better to use, I'd by happy to test it. |
@Pluppo I created https://github.com/Pluppo/ntc-templates/pull/1 which removes the state change. In TextFSM, |
NXOS SHOW INTF: Remove state change
Newer OS versions have a separate header section for the MGMT interface than from the Ethernet interfaces. In order to account for this, the state change was removed and all matching is done under `Start`.
ISSUE TYPE
COMPONENT
cisco_nxos_show_interface_status.template
SUMMARY
In NXOS 7.0.3.I7.5a there is a separate section with column names for the mgmt0 interface. This caused a "textfsm.TextFSMError" when the column name section appeared for the second time. This update fixes the issue.