-
Notifications
You must be signed in to change notification settings - Fork 394
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
show rep topology detail error #925
Comments
Hi ajackson79, Could you please share the raw output for 'show rep topology detail'. Regards, |
This output fails with the error above. REP Segment 170 I fixed my local version by changing the regex on line 9467 of the file show_platform.py original: p2 = re.compile(r'^(?P[\w\d]+), (?P[a-z|A-Z]+\d+/\d+(/\d+)?) ((?P.+))$') my change: p2 = re.compile(r'^(?P[\w\d-]+), (?P[a-z|A-Z]+\d+/\d+(/\d+)?) ((?P.+))$') Now mine no longer errors. It would be nice to get the main branch edited though so updates don't break things on my side. |
Hi @ajackson79 could please you mention which image the parser is failing IOSXE or IOSXR ? |
python/site-packages/genie/libs/parser/iosxe/show_platform.py", line 9513, in cli iosxe |
Hi @ajackson79, the above issue has been resolved and will take effect in the next release. Please continue contributing, and I will proceed with closing this ticket. Thank you |
The 'show rep topology detail' parser fails when a device name includes a dash. (-)
Example of a device name that fails:
TEST-TEST
The error is:
python/site-packages/genie/libs/parser/iosxe/show_platform.py", line 9513, in cli
intf_dict['role'] = group['role']
UnboundLocalError: local variable 'intf_dict' referenced before assignment
The text was updated successfully, but these errors were encountered: