napalm-automation / napalm

Network Automation and Programmability Abstraction Layer with Multivendor support
Apache License 2.0
2.25k stars 555 forks source link

The h3c driver open method takes too long to execute #2124

Open xiaopengpeng opened 3 months ago

xiaopengpeng commented 3 months ago

the version 5.0.0

the code driver = get_network_driver('h3c_comware') device = driver(hostname='192.168.110.5', username='xxx', password='xxx') print(datetime.datetime.now()) device.open() print(datetime.datetime.now())

the print 2024-07-22 13:55:08.216342 2024-07-22 13:55:14.653368 it takes 6s

What can be done to shorten the time

ktbyers commented 3 months ago

You probably should post here and not in the main napalm repository:

https://github.com/napalm-automation-community/napalm-h3c-cw7-ssh/

There is a very good chance that you are going to need to diagnose the slowness and propose fixes via pull-request (i.e. it is probably unlikely that someone is going to fix this issue for you).