-
Notifications
You must be signed in to change notification settings - Fork 555
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
Python 10+ EOS SSLV3_ALERT_HANDSHAKE_FAILURE #1731
Comments
FWIW, the following does work on 3.10 and the current version of NAPALM: import ssl
from napalm.eos import EOSDriver
ctx = ssl.create_default_context()
ctx.set_ciphers("DEFAULT")
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
with EOSDriver("ceos", "eos", "eos", optional_args={"context": ctx}) as d:
print(d.get_facts()) |
@bewing What do you think we should do here? The main two options I see:
FYI, the SSL issue also goes away in newer versions of EOS (i.e. they default to better security settings than older versions). |
I am going to close this as I don't think there is any action to take. The fix above let's you workaround this issue. |
with Python 3.10 TLS handshake with cEOS fails due to this napalm-automation/napalm#1731
Here is another workaround you can do (entirely via Arista device configuration):
Solution courtesy this Reddit thread: https://www.reddit.com/r/Arista/comments/wnm3m0/eos_and_nornirnapalmpyeapi_default_cipher_suite/ |
Anyone figure out a way to make the playbook listed idempotent? I guess you could just gate on the presence of the |
I pushed this part out via NAPALM-ansible and it looks idempotent (full config replace though)
I did the other two I did run into a bit of a strange error on the config change using napalm-ansible. |
Description of Issue/Question
With Python 10+ the strength of the TLS stack is stronger. You have 2 options it seems:
Our team doesn't make the calls to be able to use option 1 and option 2 NAPALM seems to not support (at least that I am aware of)
eapi supporting documentation: https://pyeapi.readthedocs.io/_/downloads/en/develop/pdf/ (Page 28)
Our pyeapi implementation:
Did you follow the steps from https://github.com/napalm-automation/napalm#faq
(Place an
x
between the square brackets where applicable)Setup
napalm version
(Paste verbatim output from
pip freeze | grep napalm
between quotes below)Network operating system version
(Paste verbatim output from
show version
- or equivalent - between quotes below)Steps to Reproduce the Issue
Error Traceback
(Paste the complete traceback of the exception between quotes below)
The text was updated successfully, but these errors were encountered: