Skip to content
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

fixes issue 972 #973

Conversation

mitchell-foxworth
Copy link
Contributor

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT

Template cisco_ios/show_ip_access-list.textfsm

SUMMARY

Fixes #972

Before:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mitchf/sandbox/ntc-templates/ntc_templates/parse.py", line 57, in parse_output
    cli_table.ParseCmd(data, attrs)
  File "/home/mitchf/.cache/pypoetry/virtualenvs/ntc-templates-mltuM8_k-py3.8/lib/python3.8/site-packages/textfsm/clitable.py", line 282, in ParseCmd
    self.table = self._ParseCmdItem(self.raw, template_file=template_files[0])
  File "/home/mitchf/.cache/pypoetry/virtualenvs/ntc-templates-mltuM8_k-py3.8/lib/python3.8/site-packages/textfsm/clitable.py", line 315, in _ParseCmdItem
    for record in fsm.ParseText(cmd_input):
  File "/home/mitchf/.cache/pypoetry/virtualenvs/ntc-templates-mltuM8_k-py3.8/lib/python3.8/site-packages/textfsm/parser.py", line 895, in ParseText
    self._CheckLine(line)
  File "/home/mitchf/.cache/pypoetry/virtualenvs/ntc-templates-mltuM8_k-py3.8/lib/python3.8/site-packages/textfsm/parser.py", line 944, in _CheckLine
    if self._Operations(rule, line):
  File "/home/mitchf/.cache/pypoetry/virtualenvs/ntc-templates-mltuM8_k-py3.8/lib/python3.8/site-packages/textfsm/parser.py", line 1021, in _Operations
    raise TextFSMError('Error: %s. Rule Line: %s. Input Line: %s.'
textfsm.parser.TextFSMError: Error: "Could not parse line:". Rule Line: 40. Input Line:     10 permit 10.163.244.32 (1 match).

After: the output is parsed successfully.

@FragmentedPacket FragmentedPacket merged commit a33af5a into networktocode:master Aug 30, 2021
cppmonkey pushed a commit to cppmonkey/ntc-templates that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Could not parse line:" error for Standard ACL entries containing 1 match.
2 participants