-
Notifications
You must be signed in to change notification settings - Fork 767
Update cisco_ios_show_interface_link.textfsm #2128
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_ios_show_interface_link.textfsm #2128
Conversation
@Malvin3197 We also need test data added to this PR. Do not replace the existing test data, but it is ok to either add to an existing file OR in some cases it is better to add a new file. As long as you put the raw data in the correct spot, you can use helper scripts to generate the structured data (yaml). The test data is necessary so that we can make sure the template is backwards compatible in the future when more changes are needed. 🎯 Please respond back if there are any questions. Thank you! |
Make "d" character optional. Example: Port Name Down Time Up Time Te1/0/1 1y1w Te1/0/2 1y1w Te1/0/3 1y1w added tests update to allow #y#w format updated uptime also
cb01025
to
d2ceac9
Compare
Hi @mjbear , Test Data added. Also ran tests locally and passed. Thank you so much for the help! |
Little sense in parsing a bunch of nearly duplicate rows
The square brackets are not needed for the optional pattern since there is only a single optional character within them.
I walked back on my thought about a separate PR. Since the couple of refactors are simple they can land in this PR.
|
Issue: "State Error raised. Rule Line: 32. Input Line: Te1/0/1 1y1w"
Fix:
Make "d" character optional.
Example:
Port Name Down Time Up Time
Te1/0/1 1y1w
Te1/0/2 1y1w
Te1/0/3 1y1w