-
Notifications
You must be signed in to change notification settings - Fork 23
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
PyATS fails to connect to APIC using rest.connector.Rest #124
Comments
Kindly give me some time I will check and let you know. Thank you |
please try to pass TACACS credentials like this and try
Thank you |
Thanks! here is my updated testbed
with the same result:
|
Okay,Kindly give me some time.I will check with the team and get back to you |
Can you please provide the debug logs to debug the issue? Thank you. |
as requested! DEBUG:pyats.connections.manager:Connection manager added new connection via rest with alias rest During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Okay,Give me some time i will check and get back to you Thank you |
Can you check if the username you passed is correct? I believe there might be an issue with the username ,dots are not supported. correct it and test it. Additionally, could you share the working debug log? |
1 similar comment
Can you check if the username you passed is correct? I believe there might be an issue with the username ,dots are not supported. correct it and test it. Additionally, could you share the working debug log? |
I'll create a tacacs account with no dots and see if the behavior changes. Interesting note is that I can authenticate with that username using the following resource file for robot framework: `*** Settings *** *** Variables *** *** Keywords *** Login APIC |
Create a TACACS account without dots and see whether you will encounter the issue or not and kindly let me know |
Could you please provide an update on the above, please? |
Sorry for the delay, I’ll the results posted today. |
Could you please provide an update on the above, please? |
ok, looks like it is an issue with the dots in the user account. aci_tb.yml devices: pyats shell --testbed-file aci_tb.yml
|
Can I close the ticket now that the issue has been resolved? |
I agree the workaround works,, but is this not an issue with how implementation.py is passing the credentials? For example, I can do a curl request to aaaLogin with no issues: |
In the repo for TACACS, dots are not supported in the pyats. That's why I suggested passing TACACS credentials like the example below
Please let me know if you need further assistance or may I close the ticket? |
I think we have a working solution now. Feel free to close the issue and thanks for the assistance! |
As you mentioned, we have a working solution because of that you told me to close the ticket. Hence, I am closing the ticket. Thank you |
I'm trying to connect to an APIC using PyATS and the rest.connector.Rest method, but no matter what, I get authentication failures. Here is my testbed file:
Output from pyATS shell:
And here is the session log from the APIC:
I'm running:
I've tried every combination of credentials and connections that I can think of and I'm still getting 401. The API works with ansible using the rest modules.
The text was updated successfully, but these errors were encountered: