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

Refactor: Change error messages for unsupported commands and known eos error #1010

Open
gmuloc opened this issue Jan 15, 2025 · 1 comment
Open

Comments

@gmuloc
Copy link
Collaborator

gmuloc commented Jan 15, 2025

https://github.com/aristanetworks/anta/blob/main/anta/device.py#L505

This should be copied to AntaTest handling to get the test context + add back a warning with device context

@carl-baillargeon
Copy link
Contributor

We also get duplicate logs for the privileged mode:

           ERROR    [anta.device] Command 'show running-config diffs' requires privileged mode on DC1-LEAF1A. Verify user permissions and if the `enable` option is required.                                                                          device.py:614
           ERROR    [anta.device] Command 'show running-config diffs' failed on DC1-LEAF1A: Invalid input (privileged mode required)                                                                                                                   device.py:620
           ERROR    [anta.device] Command 'show running-config' requires privileged mode on DC1-LEAF1A. Verify user permissions and if the `enable` option is required.                                                                                device.py:614
           ERROR    [anta.device] Command 'show running-config' failed on DC1-LEAF1A: Invalid input (privileged mode required)                                                                                                                         device.py:620

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

No branches or pull requests

2 participants