-
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
Cisco IOS - textfsm.parser.TextFSMError: State Error raised. Rule Line: 17. #718
Comments
Can likely change |
I tried that and I still get the error |
@rapowell What you have in your post and what @itdependsnetworks stated works. I would look into how Netmiko is pulling those templates and where it is looking for those and make sure you made the change in the correct location. I can submit a PR to push the fix up, but if you haven't had the experience of doing so, we typically recommend submitting the PR yourself. |
@FragmentedPacket and @itdependsnetworks - Thanks for the feedback and validation that what I thought should work should work. On a related not, I had also tried to modify the index file because the "show cdp neighbors detail" command wasn't parsing the output when I entered it as "sh cdp nei det" and even after changing it in the index file it didn't seem to pick up the change. I'll attempt to submit the PR for textfsm and I'll open up an issue with netmiko to see if the author can point me in the right direction. Thanks again. |
Should be detailed here: https://pynet.twb-tech.com/blog/automation/netmiko-textfsm.html But basically you need to set the NET_TEXTFSM environment variable (and point to directory containing the TextFSM index file). There is PR to use the PIP-package, but I haven't got the review of that done yet. |
@ktbyers Thanks for the update. Now I need to work out how to make that happen on a Windows machine that I don't have admin rights to. |
I think I figured it out in case anyone else encounters this problem, this is what I did.
Now I need to verify this will work inside a script and I will have a good workaround. Thanks. |
ISSUE TYPE
TEMPLATE USING
cisco_ios_show_interfaces_description.textfsm
SAMPLE COMMAND OUTPUT
SUMMARY
When attempting to parse the output from the sh int desc (show interface description) command on Cisco IOS, I get an Error as shown below. I attempted to modify the template as follows, but that did not fix the issue
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: